/* ============================================
   IT & Digital Solutions - Professional Styles
   Elegant, modern, business-focused design
   ============================================ */

:root {
  --primary: #0a4d8c;
  --primary-dark: #063a6b;
  --primary-light: #1a6bb5;
  --accent: #00b4d8;
  --accent-hover: #0096c7;
  --dark: #0a1628;
  --dark-2: #122033;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --bg-section: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 10px 40px rgba(10, 22, 40, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font: 'Zalando Sans Expanded','IBM Plex Sans','Inter';
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(10, 77, 140, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 77, 140, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.logo span {
  color: var(--accent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--dark-2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
}

.dropdown a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.header-cta {
  margin-left: 12px;
}

.header-cta .btn {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* ========== Hero with Video ========== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(10,77,140,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 100px;
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 560px;
}

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

/* ========== Sections ========== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-header p {
  margin-top: 12px;
}

.bg-light {
  background: var(--bg-light);
}

.bg-dark {
  background: var(--dark);
  color: var(--white);
}

.bg-dark h2,
.bg-dark h3 {
  color: var(--white);
}

.bg-dark p {
  color: rgba(255,255,255,0.7);
}

/* ========== Cards ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(10,77,140,0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.card-link:hover {
  gap: 10px;
  color: var(--accent);
}

/* ========== Feature List ========== */
.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.feature-item::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b4d8'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}

/* ========== Two Column ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

/* ========== Process Steps ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.process-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.process-step h4 {
  margin-bottom: 8px;
  margin-top: 8px;
}

/* ========== Industry Cards ========== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.industry-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.industry-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.industry-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.industry-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.industry-card p {
  font-size: 0.85rem;
  margin: 0;
}

/* ========== Tech Badges ========== */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tech-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  transition: var(--transition);
}

.tech-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* ========== CTA Banner ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding: 140px 0 80px;
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
}

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

/* ========== Contact Form ========== */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 77, 140, 0.12);
  background: var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== Footer ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin: 16px 0 24px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

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

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h4 {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}

.faq-item p {
  margin-top: 12px;
  display: none;
}

.faq-item.open p {
  display: block;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .two-col.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--dark-2);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav.open {
    display: flex;
  }
  .nav-item {
    width: 100%;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
    margin-top: 4px;
  }
  .nav-item.open .dropdown {
    display: block;
  }
  .mobile-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.text-accent { color: var(--accent); }
.lead {
  font-size: 1.15rem;
  color: var(--text-light);
}

/* ========== Additional Fixes & Polish ========== */

/* Ensure content starts below fixed header */
.hero,
.page-hero {
  padding-top: 72px;
}

.page-hero {
  padding-top: 140px !important;
}

/* Better feature list icons */
.feature-item::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: rgba(0, 180, 216, 0.12);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1px;
}

/* Ensure cards have consistent height behavior */
.cards-grid {
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
}

.card .card-link {
  margin-top: auto;
  padding-top: 16px;
}

/* Dropdown z-index fix */
.dropdown {
  z-index: 1100;
}

/* Better mobile nav */
@media (max-width: 768px) {
  .nav.open {
    display: flex;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .header-inner {
    height: 64px;
  }
  
  .hero-content {
    padding: 100px 0 60px;
  }
  
  .page-hero {
    padding: 110px 0 50px !important;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .cta-banner {
    padding: 40px 24px;
  }
  
  .contact-form {
    padding: 28px 20px;
  }
  
  .two-col {
    gap: 32px;
  }
}

/* Secondary button on light backgrounds */
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

/* Outline button always visible */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Logo text color */
.logo {
  color: #fff !important;
}

.logo span {
  color: var(--accent) !important;
}

/* Ensure video doesn't block interaction */
.hero-video {
  pointer-events: none;
}

/* Smooth card hover */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.12);
}

/* Process step numbers */
.process-step::before {
  box-shadow: 0 2px 8px rgba(10, 77, 140, 0.3);
}

/* Form improvements */
.form-group input,
.form-group select,
.form-group textarea {
  color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Footer logo */
.footer .logo {
  margin-bottom: 8px;
}

/* Prevent horizontal scroll */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}