/* ============================================================
   Digital Marketing Professionals Ltd — Global Styles
   ============================================================ */

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

/* === CSS Variables === */
:root {
  --navy:       #0d1b3e;
  --navy-light: #162553;
  --blue:       #1a73e8;
  --blue-dark:  #1557b0;
  --teal:       #00b4d8;
  --white:      #ffffff;
  --off-white:  #f8f9fc;
  --gray-100:   #f1f3f8;
  --gray-200:   #e2e6ef;
  --gray-400:   #9aa3b5;
  --gray-600:   #555f72;
  --gray-800:   #2d3345;
  --text:       #1e2535;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 2px 16px rgba(13,27,62,0.10);
  --shadow-md:  0 4px 28px rgba(13,27,62,0.14);
  --transition: 0.22s ease;
}

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

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

.preloader-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.1s forwards;
}

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

.preloader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.2s forwards;
}

.preloader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 2px;
  animation: load 0.55s ease 0.3s forwards;
}

@keyframes load {
  to { width: 100%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Page Fade-in === */
body { opacity: 0; animation: pageFade 0.4s ease 0.65s forwards; }

@keyframes pageFade {
  to { opacity: 1; }
}

/* === Scroll Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

/* === Utility === */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--navy); color: var(--white); }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section--dark .section-title { color: var(--white); }

.section-subtitle {
  font-size: 1.07rem;
  color: var(--gray-600);
  max-width: 580px;
  line-height: 1.7;
}

.section--dark .section-subtitle { color: rgba(255,255,255,0.75); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,115,232,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-dark:hover {
  background: var(--blue);
  color: var(--white);
}

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 8px rgba(13,27,62,0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.nav-logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.nav-logo-name span { color: var(--blue); }

.nav-logo-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--gray-100);
}

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* === Footer === */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand-name span { color: var(--teal); }

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-reg {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}

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

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

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

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

/* === Home: Hero === */
.hero {
  background: linear-gradient(135deg, rgba(13,27,62,0.90) 0%, rgba(22,40,96,0.88) 60%, rgba(30,58,122,0.85) 100%), url('../images/hero.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,115,232,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 22px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--teal); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(8px);
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(26,115,232,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-card-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.hero-card-text span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* === Trust Bar === */
.trust-bar {
  background: var(--navy-light);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-item-icon {
  font-size: 1.1rem;
}

/* === Services Preview === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card-body {
  padding: 24px 28px 32px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gray-100);
}

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

.service-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img { transform: scale(1.04); }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(26,115,232,0.1);
}

.service-card h3 {
  font-size: 1.07rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

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

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

/* === Stats === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}

.stat-item {
  background: var(--navy-light);
  padding: 36px 28px;
  text-align: center;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--navy), #1a3a7a);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === About: Team Bio === */
.founder-bio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-top: 48px;
}

.founder-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--blue);
  box-shadow: 0 4px 16px rgba(26,115,232,0.25);
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.founder-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.founder-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}

.founder-bio-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  background: var(--gray-100);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}

/* === Values Grid === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

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

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* === Timeline === */
.timeline {
  margin-top: 40px;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* === Services Page: Detail === */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-of-type { border-bottom: none; }

.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-detail-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.service-detail h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.service-detail p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 22px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-800);
}

.feature-check {
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.service-visual-box {
  border-radius: var(--radius-lg);
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.service-visual-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 340px;
  transition: transform 0.4s ease;
}

.service-visual-box:hover img {
  transform: scale(1.03);
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-body strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact-item-body p,
.contact-item-body address {
  font-size: 0.92rem;
  color: var(--gray-600);
  font-style: normal;
  line-height: 1.65;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

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

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

/* === Map Placeholder === */
.map-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: 32px;
  border: 1px solid var(--gray-200);
}

.map-placeholder-icon { font-size: 2.5rem; }

/* === Page Hero (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, rgba(13,27,62,0.92) 0%, rgba(22,40,96,0.88) 100%), url('../images/hero.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 70px 0 60px;
}

.page-hero .section-label { color: var(--teal); }

.page-hero .section-title { color: var(--white); }

.page-hero .section-subtitle { color: rgba(255,255,255,0.72); }

/* === Registration Box === */
.reg-box {
  background: var(--gray-100);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-top: 24px;
}

.reg-box strong { color: var(--navy); }

/* === Responsive === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .founder-bio { grid-template-columns: 1fr; }
  .founder-avatar { width: 72px; height: 72px; font-size: 1.8rem; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; box-shadow: var(--shadow-md); border-top: 1px solid var(--gray-200); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 20px; }
}
