:root {
  --primary: #ff5722;
  --primary-dark: #e14710;

  --bg-primary: #ffffff;
  --bg-secondary: #eef1fb;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --nav-bg: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #666b80;
  --text-muted: #888888;
  --input-bg: #ffffff;
  --border-color: #e6e8f0;
  --body-text: #222222;

  /* Hero / Portfolio "surface" theme */
  --surface-bg: linear-gradient(135deg, #ffffff 0%, #f6f7fb 55%, #ffffff 100%);
  --surface-card-bg: #ffffff;
  --surface-border: #e2e5f2;
  --surface-text: #1a1a2e;
  --surface-text-secondary: #666b80;
  --surface-hover: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --bg-primary: #12162a;
  --bg-secondary: #171b32;
  --card-bg: #1c2140;
  --header-bg: #12162a;
  --nav-bg: #171b32;
  --text-primary: #f4f5fa;
  --text-secondary: #b7bccf;
  --text-muted: #9599b0;
  --input-bg: #232946;
  --border-color: #2b3157;
  --body-text: #e6e8f5;

  /* Hero / Portfolio "surface" theme */
  --surface-bg: linear-gradient(135deg, #10142a 0%, #1a2140 55%, #10142a 100%);
  --surface-card-bg: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-text: #ffffff;
  --surface-text-secondary: #a7acc4;
  --surface-hover: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--body-text);
  background: var(--bg-primary);
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============ HEADER ============ */
.site-header {
  width: 100%;
  background: var(--header-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  height: 44px;
  width: auto;
}

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

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-home-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.nav-home-text {
  display: none;
}

.dropdown-toggle-full:hover,
.dropdown-caret:hover {
  color: var(--primary);
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-btn {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 9px 22px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.login-btn:hover {
  background: var(--primary);
  color: #191d2e;
}

.register-btn {
  background: var(--primary);
  color: #191d2e;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.register-btn:hover {
  background: var(--primary-dark);
}

.auth-btns-desktop {
  display: flex;
}

.auth-btns-mobile {
  display: none;
}

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

body.no-scroll {
  overflow: hidden;
}

/* Responsive header */
@media (max-width: 1180px) {
  .header-right {
    gap: 12px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80%);
    height: 100vh;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 90px 30px 30px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    transition: right 0.3s ease, background 0.3s ease;
    overflow-y: auto;
  }

  .main-nav.nav-open {
    right: 0;
  }

  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
  }

  .nav-home-link {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-home-text {
    display: inline;
  }

  .auth-btns-desktop {
    display: none;
  }

  .auth-btns-mobile {
    display: flex;
    margin-top: 24px;
    width: 100%;
  }

  .auth-btns-mobile .login-btn,
  .auth-btns-mobile .register-btn {
    flex: 1;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
  }

  .nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 12px 18px;
  }
  .logo img {
    height: 36px;
  }
}

.nav-overlay {
  display: none;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #191d2e;
  color: #c9cdda;
  padding: 60px 30px 0;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
}

.footer-brand {
  flex: 1 1 320px;
  max-width: 400px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #9ea3b8;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s ease;
}

.social-icons a:hover {
  background: var(--primary);
}

.footer-col {
  flex: 1 1 150px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  font-weight: 600;
}

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

.footer-col ul li a {
  font-size: 14px;
  color: #9ea3b8;
  transition: color 0.2s ease;
}

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

.support-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-list li i {
  width: 16px;
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}

.contact-info-list {
  margin: 22px 0;
}

.contact-info-list li {
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.contact-info-list li i {
  margin-top: 3px;
}

.contact-socials {
  margin-top: 10px;
}

.contact-socials a {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.contact-socials a:hover {
  background: var(--primary);
  color: #ffffff;
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #7a7f96;
}

.made-in .heart {
  color: var(--primary);
}

/* Responsive footer */
@media (max-width: 600px) {
  .site-footer {
    padding: 45px 20px 0;
  }
  .footer-inner {
    gap: 30px;
  }
  .footer-col {
    flex: 1 1 45%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ HERO SECTION ============ */
.hero {
  background: var(--surface-bg);
  padding: 70px 30px;
  transition: background 0.3s ease;
}

.hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
}

.hero-left {
  flex: 1 1 480px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 87, 34, 0.5);
  background: rgba(255, 87, 34, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.hero-heading {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--surface-text);
  margin-bottom: 20px;
  min-height: 1.3em;
}

.hero-heading .highlight {
  color: var(--primary);
}

.typed-wrap {
  display: inline-block;
}

.typed-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--primary);
  animation: typed-blink 0.8s steps(1) infinite;
}

@keyframes typed-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-subtext {
  font-size: 16px;
  line-height: 1.7;
  color: var(--surface-text-secondary);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-primary {
  background: var(--primary);
  color: #191d2e;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--surface-text);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.hero-call {
  color: var(--surface-text-secondary);
  font-size: 15px;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-call i {
  color: var(--primary);
}

.hero-call strong {
  color: var(--surface-text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 560px;
}

.stat-box {
  background: var(--surface-card-bg);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
}

.stat-box h3 {
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-box span {
  color: var(--surface-text-secondary);
  font-size: 12px;
}

/* Right side service cards */
.hero-right {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  position: relative;
  background: var(--surface-card-bg);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
}

.service-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.icon-blue   { background: #2f6fed; }
.icon-purple { background: linear-gradient(135deg, #d6249f, #f77737); }
.icon-dark   { background: #22263a; border: 1px solid rgba(255,255,255,0.15); }
.icon-red    { background: #e33d3d; }
.icon-sky    { background: #29a9e0; }
.icon-green  { background: #25b26b; }

.service-text h4 {
  color: var(--surface-text);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}

.service-text span {
  color: var(--surface-text-secondary);
  font-size: 13px;
}

.new-badge {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: #25b26b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Responsive hero */
@media (max-width: 860px) {
  .hero {
    padding: 50px 20px;
  }
  .hero-inner {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .hero-heading { font-size: 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .new-badge { top: 12px; right: 14px; transform: none; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .service-card { padding: 14px 16px; }
}

@media (max-width: 400px) {
  .hero-heading { font-size: 22px; }
  .hero-badge { font-size: 12px; padding: 7px 14px; }
}

/* ============ SHARED SECTION STYLES ============ */
.section-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 30px;
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
}

.dark-title { color: var(--text-primary); }

.section-subtext {
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

.dark-subtext { color: var(--text-secondary); }

/* ============ PORTFOLIO SECTION ============ */
.portfolio-section {
  position: relative;
  background: var(--surface-bg);
  overflow: hidden;
  transition: background 0.3s ease;
}

.portfolio-section .section-inner {
  padding-top: 70px;
  padding-bottom: 70px;
}

.portfolio-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--surface-text);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portfolio-item {
  background: var(--surface-card-bg);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
}

.portfolio-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
}

.thumb-1 { background: linear-gradient(135deg, #2f6fed, #1a2140); }
.thumb-2 { background: linear-gradient(135deg, #7c3aed, #1a2140); }
.thumb-3 { background: linear-gradient(135deg, #e33d8f, #1a2140); }
.thumb-4 { background: linear-gradient(135deg, #29a9e0, #1a2140); }
.thumb-5 { background: linear-gradient(135deg, #25b26b, #1a2140); }
.thumb-6 { background: linear-gradient(135deg, #f0a636, #1a2140); }
.thumb-7 { background: linear-gradient(135deg, #16a34a, #1a2140); }
.thumb-8 { background: linear-gradient(135deg, #e33d3d, #1a2140); }

.portfolio-caption {
  padding: 14px 12px;
  color: var(--surface-text);
  font-size: 14px;
  font-weight: 600;
}

.portfolio-cta {
  margin-top: 46px;
}

.portfolio-empty {
  display: none;
  text-align: center;
  color: var(--surface-text-secondary);
  font-size: 14px;
  margin-top: 30px;
}

/* ============ PRICING SECTION ============ */
.pricing-section {
  background: var(--bg-secondary);
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  align-items: stretch;
}

.pricing-card {
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: 14px;
  padding: 36px 30px;
  flex: 1 1 280px;
  max-width: 320px;
  box-shadow: 0 6px 24px rgba(20, 25, 60, 0.06);
  text-align: center;
}

.pricing-card.featured {
  background: linear-gradient(160deg, #2f6fed, #1a2140);
  color: #ffffff;
  transform: translateY(-10px);
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popular-tag {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
}

.pricing-card .price {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 24px;
  color: inherit;
}

.pricing-card .price span {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 4px;
}

.pricing-card ul {
  margin-bottom: 30px;
  text-align: left;
}

.pricing-card ul li {
  font-size: 14px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  opacity: 0.9;
}

.pricing-card ul li i {
  color: var(--primary);
}

.pricing-card.featured ul li i {
  color: #ffd591;
}

.pricing-btn {
  display: inline-block;
  width: 100%;
  padding: 13px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.pricing-btn.filled {
  background: var(--primary);
  color: #ffffff;
}

.pricing-btn.outline {
  border: 1.5px solid #ffffff;
  color: #ffffff;
}

.pricing-btn:hover {
  opacity: 0.85;
}

/* ============ TEAM SECTION ============ */
.team-section {
  background: var(--bg-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  display: block;
}

.team-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-card span {
  font-size: 13px;
  color: var(--text-muted);
}

.team-avatar {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: #c7cad9;
  overflow: visible;
}

.team-socials-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.team-socials-row a {
  color: var(--text-secondary);
  font-size: 15px;
  transition: color 0.2s ease;
}

.team-socials-row a:hover {
  color: var(--primary);
}

.team-card-link,
.team-listing-link {
  display: block;
}

/* ============ BLOG SECTION ============ */
.blog-section {
  background: var(--bg-secondary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.blog-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
  .blog-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid-3 {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  position: relative;
  min-height: 340px;
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #ffffff;
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
}

.blog-bg-1 { background: linear-gradient(135deg, #2f6fed, #1a2140); }
.blog-bg-2 { background: linear-gradient(135deg, #7c3aed, #1a2140); }

.blog-meta,
.blog-card h3 {
  position: relative;
  z-index: 1;
}

.blog-meta {
  font-size: 13px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.blog-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

/* ============ CLIENTS SECTION ============ */
.clients-section {
  background: var(--bg-secondary);
}

.clients-section .section-inner {
  text-align: left;
  padding-top: 60px;
  padding-bottom: 60px;
}

.clients-title {
  font-size: 18px;
  font-weight: 800;
  color: #2f6fed;
  letter-spacing: 0.5px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 36px;
}

.clients-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.clients-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: clients-scroll 22s linear infinite;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

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

.client-logo {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ============ FLOATING BUTTONS ============ */
.float-btn {
  position: fixed;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  border: none;
  cursor: pointer;
  z-index: 150;
}

.whatsapp-btn {
  bottom: 24px;
  background: #25d366;
}

.scroll-top-btn {
  bottom: 90px;
  background: var(--primary);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============ RESPONSIVE: NEW SECTIONS ============ */
@media (max-width: 960px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section-inner { padding: 60px 22px; }
  .section-title { font-size: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .float-btn { width: 46px; height: 46px; font-size: 20px; right: 16px; }
  .whatsapp-btn { bottom: 16px; }
  .scroll-top-btn { bottom: 72px; font-size: 15px; }
}

@media (max-width: 420px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ WELCOME / QUOTE FORM SECTION ============ */
.welcome-section {
  background: var(--bg-primary);
}

.welcome-inner {
  text-align: left;
  padding-top: 70px;
  padding-bottom: 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
}

.welcome-left {
  flex: 1 1 460px;
}

.welcome-right {
  flex: 1 1 420px;
}

.welcome-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.welcome-underline {
  width: 46px;
  height: 3px;
  background: var(--primary);
  margin: 14px 0 22px;
}

.welcome-quote {
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-primary);
  border-left: 3px solid var(--primary);
  padding-left: 18px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.welcome-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.welcome-btn {
  display: inline-block;
  width: auto;
  padding: 12px 30px;
  margin-top: 10px;
}

.quote-form-box {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 34px 30px;
}

.quote-form-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.quote-form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.quote-form textarea {
  width: 100%;
  margin-bottom: 18px;
}

.quote-submit-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px 34px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.quote-submit-btn:hover {
  background: var(--primary-dark);
}

/* Responsive welcome section */
@media (max-width: 640px) {
  .quote-form-row {
    flex-direction: column;
    gap: 0;
  }
  .welcome-inner {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

/* ============ TESTIMONIALS SECTION ============ */
.testimonials-section {
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: left;
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px 26px;
  box-shadow: 0 6px 20px rgba(20, 25, 60, 0.06);
}

.quote-icon {
  color: var(--primary);
  font-size: 22px;
  opacity: 0.5;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
  min-height: 100px;
}

.testimonial-stars {
  color: #f0a636;
  font-size: 13px;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #c7cad9;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.author-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive testimonials */
@media (max-width: 860px) {
  .testimonial-text {
    min-height: unset;
  }
}

/* ============ SLIDERS: TEAM & TESTIMONIALS ============ */
.slider-wrap {
  position: relative;
}

/* Arrows sit on the left/right edges, vertically centered.
   Hidden by default — JS adds .has-overflow to the wrap only when
   the slider content doesn't fit in one screen. */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 5;
  display: none;
}

.slider-arrow.arrow-left { left: -6px; }
.slider-arrow.arrow-right { right: -6px; }

.slider-wrap.has-overflow .slider-arrow {
  display: flex;
}

.slider-arrow:hover {
  background: var(--primary-dark);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

@media (max-width: 860px) {

  /* Team slider */
  .team-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 6px 44px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .team-grid::-webkit-scrollbar {
    display: none;
  }

  .team-card {
    flex: 0 0 62%;
    scroll-snap-align: center;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Testimonials slider */
  .testimonials-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 6px 44px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
}

@media (max-width: 480px) {
  .team-card {
    flex: 0 0 78%;
  }
  .testimonial-card {
    flex: 0 0 90%;
  }
}

/* ============ THEME TOGGLE (DARK/LIGHT MODE) ============ */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--border-color);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 860px) {
  .theme-toggle {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* ============ CTA SECTION (before footer) ============ */
.cta-section {
  background: linear-gradient(135deg, #0c1128 0%, #1a2140 100%);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  text-align: left;
  padding-top: 40px;
  padding-bottom: 40px;
}

.cta-heading {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 0;
  min-height: unset;
}

.cta-heading .highlight {
  color: var(--primary);
}

.cta-btn {
  display: inline-flex;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 26px;
    padding-bottom: 26px;
    gap: 14px;
  }
  .cta-heading {
    font-size: 18px;
  }
  .cta-btn {
    padding: 10px 22px;
  }
}

/* ============ POLICY / LEGAL PAGES ============ */
.policy-section {
  background: var(--bg-primary);
}

.policy-section .section-inner {
  text-align: left;
  max-width: 950px;
  padding-top: 50px;
  padding-bottom: 80px;
}

.policy-breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.policy-breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.policy-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 34px;
}

.policy-content h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 30px 0 12px;
}

.policy-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.policy-content p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.policy-content ul {
  margin: 0 0 16px 22px;
  list-style: disc;
}

.policy-content li {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.policy-content strong {
  color: var(--text-primary);
}

.policy-content a {
  color: var(--primary);
  text-decoration: underline;
}

.policy-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
  .policy-title {
    font-size: 24px;
  }
  .policy-section .section-inner {
    padding-top: 34px;
    padding-bottom: 56px;
  }
}

/* ============ SERVICE DETAIL PAGES ============ */
.service-lead {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.tech-category {
  margin: 26px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.tech-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
}

.service-page-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============ ABOUT PAGE ============ */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 34px 0 10px;
}

/* ============ BLOG LISTING PAGE ============ */
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

@media (max-width: 860px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .blog-listing-grid { grid-template-columns: 1fr; }
}

/* ============ NAV DROPDOWNS (Products / Service) ============ */
.nav-item.dropdown {
  position: relative;
}

.dropdown-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dropdown-toggle-full,
.dropdown-caret {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.dropdown-caret {
  padding: 6px;
  font-size: 11px;
}

.dropdown-caret-icon {
  font-size: 11px;
}

.dropdown-caret-icon,
.dropdown-caret i {
  transition: transform 0.2s ease;
}

.nav-item.dropdown.open .dropdown-caret-icon,
.nav-item.dropdown.open .dropdown-caret i {
  transform: rotate(180deg);
}

.dropdown-menu {
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
}

.dropdown-menu a i:first-child {
  color: var(--primary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

/* ============ NAV: DOMAIN & HOSTING BADGE LINK ============ */
.nav-link-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 87, 34, 0.08);
  border: 1px solid rgba(255, 87, 34, 0.25);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-link-badge:hover {
  background: rgba(255, 87, 34, 0.15);
  color: var(--primary);
}

.nav-link-badge i:first-child {
  color: var(--primary);
}

.new-badge-top {
  position: absolute;
  top: -9px;
  left: 12px;
  background: #2f6fed;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  line-height: 1.4;
}

/* Desktop: hover-triggered dropdown */
@media (min-width: 1181px) {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 14px;
    min-width: 260px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 60;
  }

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

/* Mobile: click-to-expand accordion */
@media (max-width: 1180px) {
  .nav-item.dropdown {
    width: 100%;
  }

  .dropdown-row,
  .dropdown-toggle-full {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .dropdown-row .nav-link {
    border-bottom: none;
    padding: 0;
  }

  .dropdown-menu {
    display: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 4px 14px;
  }

  .nav-item.dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: none;
    width: 100%;
    white-space: normal;
  }

  .nav-link-badge {
    width: 100%;
    margin: 16px 0 10px;
    justify-content: flex-start;
    white-space: normal;
  }
}

/* ============ LOGIN / REGISTER MODAL ============ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 300;
}

.auth-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  position: relative;
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 40px 34px 34px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.auth-modal-overlay.show .auth-modal {
  transform: translateY(0);
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-close:hover {
  background: var(--primary);
  color: #ffffff;
}

.auth-modal-title {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.auth-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.auth-modal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px 22px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(20, 25, 60, 0.05);
}

.auth-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.icon-blue-soft {
  background: linear-gradient(135deg, #dbe6ff, #c3d4fb);
  color: #3b5bdb;
}

.icon-purple-soft {
  background: linear-gradient(135deg, #e7ddff, #d6c4fb);
  color: #7c3aed;
}

.icon-green-soft {
  background: linear-gradient(135deg, #d3f7e8, #b7ecda);
  color: #12856b;
}

.auth-modal-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-modal-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 40px;
}

.auth-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 20px;
  transition: background 0.2s ease;
}

.auth-modal-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

@media (max-width: 720px) {
  .auth-modal-grid {
    grid-template-columns: 1fr;
  }
  .auth-modal {
    padding: 34px 20px 26px;
  }
}

/* ============ OUR TEAM LISTING PAGE ============ */
.team-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.team-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 10px;
}

.team-listing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(20, 25, 60, 0.08);
}

.team-listing-card .team-avatar {
  width: 90px;
  height: 90px;
  font-size: 36px;
  margin-bottom: 14px;
}

.team-listing-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-listing-card span {
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .team-listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-listing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* ============ INDIVIDUAL TEAM MEMBER PAGE ============ */
.member-profile-inner {
  max-width: 700px;
}

.member-profile-card {
  text-align: center;
  padding: 20px 0 10px;
}

.member-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: #c7cad9;
  font-size: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.member-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.member-role {
  display: block;
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.member-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.member-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.member-socials a:hover {
  background: var(--primary);
  color: #ffffff;
}

.member-handle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.member-bio {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 30px;
  text-align: left;
}

/* ============ OUR CLIENTS LISTING PAGE ============ */
.clients-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.client-listing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.2s ease;
}

.client-listing-card:hover {
  transform: translateY(-3px);
}

.client-listing-card .service-icon {
  margin: 0 auto 14px;
}

.client-listing-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.client-listing-card span {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .clients-listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
