/*--------------------------------------------------------------
# Pragmatek - Professional Redesign
--------------------------------------------------------------*/

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

:root {
  --default-font: "Inter", system-ui, -apple-system, sans-serif;
  --heading-font: "Inter", system-ui, sans-serif;
  --nav-font: "Inter", system-ui, sans-serif;
}

:root {
  --background-color: #f8fafc;
  --surface-color: #ffffff;
  --surface-alt: #f1f5f9;
  --default-color: #475569;
  --heading-color: #0f172a;
  --accent-color: #2563eb;
  --accent-glow: #2563eb18;
  --accent-dark: #1d4ed8;
  --contrast-color: #ffffff;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --gradient-start: #f8fafc;
  --gradient-end: #f1f5f9;
}

:root {
  --nav-color: #334155;
  --nav-hover-color: #2563eb;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #334155;
  --nav-dropdown-hover-color: #2563eb;
}

:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General & Reset
--------------------------------------------------------------*/
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: #60a5fa;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--default-color);
}

img {
  max-width: 100%;
}

/*--------------------------------------------------------------
# Global Utilities
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
}

.section-title h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 38px;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.2;
  margin: 0 auto;
  max-width: 700px;
}

.accent-pill {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-color);
  border: 1px solid #3b82f620;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  margin-bottom: 20px;
}

/*--------------------------------------------------------------
# Header / Nav
--------------------------------------------------------------*/
.header {
  background: transparent;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 12px #00000010;
  padding: 14px 0;
}

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

.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.navmenu ul li a {
  color: var(--nav-color);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
  color: var(--accent-color);
  background: var(--accent-glow);
}

.btn-getstarted {
  background: var(--accent-color);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-getstarted:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px #3b82f640;
}

/* Mobile Nav */
.mobile-nav-toggle {
  display: none;
  color: var(--heading-color);
  font-size: 24px;
  cursor: pointer;
  margin-right: 16px;
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navmenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9998;
    padding: 80px 40px 40px;
  }

  .navmenu.mobile-nav-active {
    display: block;
  }

  .navmenu ul {
    flex-direction: column;
    gap: 4px;
  }

  .navmenu ul li a {
    font-size: 20px;
    padding: 14px 20px;
    display: block;
  }

  .mobile-nav-toggle.bi-x {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    font-size: 28px;
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--background-color);
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Mesh gradient background */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, #2563eb10 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 70%, #0ea5e90a 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 80% 80%, #6366f108 0%, transparent 50%);
}

/* Grid lines */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f615;
  border: 1px solid #3b82f625;
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 28px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--heading-color);
  margin-bottom: 24px;
}

.hero h1 .text-gradient {
  background: linear-gradient(135deg, #3b82f6, #818cf8, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: 18px;
  font-weight: 400;
  color: var(--default-color);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  transition: all 0.25s ease;
  letter-spacing: 0.2px;
}

.btn-primary-custom:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px #3b82f650;
}

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.btn-secondary-custom:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: var(--accent-glow);
}

/* Hero service chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 60px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--default-color);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px #00000008;
}

.hero-chip i {
  color: var(--accent-color);
  font-size: 14px;
}

.hero-chip:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: var(--accent-glow);
}

/*--------------------------------------------------------------
# Stats Strip
--------------------------------------------------------------*/
.stats-strip {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0;
}

.stat-item {
  text-align: center;
  padding: 0 20px;
}

.stat-number {
  font-size: 42px;
  font-weight: 900;
  color: var(--heading-color);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

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

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-divider {
  width: 1px;
  height: 60px;
  background: var(--border-color);
  align-self: center;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  background: var(--background-color);
  padding: 100px 0;
}

.about-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 16px;
  display: block;
}

.about h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.about .lead-text {
  font-size: 18px;
  color: #94a3b8;
  line-height: 1.75;
  margin-bottom: 32px;
}

.about-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #94a3b8;
}

.about-check-list li i {
  color: var(--accent-color);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.about-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  height: 100%;
}

.about-card p {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-highlight {
  background: #3b82f610;
  border: 1px solid #3b82f620;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 28px;
}

.about-highlight p {
  font-size: 15px;
  font-weight: 500;
  color: #93c5fd;
  margin: 0;
  font-style: italic;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
  background: var(--surface-alt);
  padding: 100px 0;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), #818cf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  border-color: #3b82f630;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px #00000018;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: #3b82f615;
  border: 1px solid #3b82f625;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.service-icon i {
  font-size: 22px;
  color: var(--accent-color);
}

.service-card:hover .service-icon {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.service-card:hover .service-icon i {
  color: #fff;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.75;
  margin: 0;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: gap 0.2s ease;
}

.service-card .service-link:hover {
  gap: 10px;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  background: var(--background-color);
  padding: 100px 0;
}

.contact-form-wrapper {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 52px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-form-wrapper h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.contact-form-wrapper .sub {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 36px;
}

.form-control {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--heading-color);
  font-size: 15px;
  padding: 14px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-control::placeholder {
  color: #334155;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px #3b82f615;
  background: var(--surface-color);
  color: var(--heading-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  background: var(--accent-color);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 36px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  letter-spacing: 0.3px;
}

.btn-submit:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px #3b82f640;
}

.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.php-email-form .loading { color: #94a3b8; }
.php-email-form .error-message { background: #ef444420; color: #f87171; border: 1px solid #ef444430; }
.php-email-form .sent-message { background: #10b98120; color: #34d399; border: 1px solid #10b98130; }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
}

.footer-brand .sitename {
  font-size: 20px;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -0.5px;
}

.footer-brand p {
  font-size: 14px;
  color: #475569;
  margin-top: 12px;
  line-height: 1.65;
  max-width: 280px;
}

.footer .social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer .social-links a {
  width: 36px;
  height: 36px;
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 15px;
  transition: all 0.2s ease;
}

.footer .social-links a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 20px;
}

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

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

.footer-links ul li a {
  color: #475569;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: 48px;
}

.footer-bottom p {
  color: #334155;
  font-size: 13px;
  margin: 0;
  text-align: center;
}

/*--------------------------------------------------------------
# Scroll Top
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px #3b82f640;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  background: var(--background-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#preloader::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/*--------------------------------------------------------------
# Service Details Page
--------------------------------------------------------------*/
.service-details-page .page-hero {
  padding: 140px 0 80px;
  background: var(--background-color);
  position: relative;
  overflow: hidden;
}

.service-details-page .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, #2563eb0a 0%, transparent 60%);
}

.service-details-page .page-hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.service-details-page .page-hero p {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
}

.services-sidebar {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 8px;
  position: sticky;
  top: 100px;
}

.services-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-bottom: 2px;
}

.services-sidebar a:hover,
.services-sidebar a.active {
  background: #3b82f615;
  color: var(--heading-color);
}

.services-sidebar a i {
  font-size: 16px;
  color: var(--accent-color);
  width: 20px;
  text-align: center;
}

.service-detail-block {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 130px;
}

.service-detail-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-detail-block .service-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f610;
  border: 1px solid #3b82f620;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.service-detail-block h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.service-detail-block p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-detail-block .deliverables {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px 32px;
  margin-top: 28px;
}

.service-detail-block .deliverables h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 20px;
}

.service-detail-block .deliverables ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-detail-block .deliverables ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #94a3b8;
}

.service-detail-block .deliverables ul li i {
  color: var(--accent-color);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/*--------------------------------------------------------------
# AOS Animation overrides
--------------------------------------------------------------*/
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .hero h1 { letter-spacing: -1px; }
  .section-title p { font-size: 28px; }
  .contact-form-wrapper { padding: 32px 24px; }
  .stats-divider { display: none; }
  .stat-item { padding: 16px 0; }
  .service-card { padding: 28px 24px; }
  .about-card { padding: 28px 24px; }
}
