/* ==========================================================================
   ORENDA SOFTWARE — PRODUCTION STYLESHEET (assets/css/style.css)
   Theme: Magenta (#d91b77), Deep Indigo (#4a1d88), Turquoise Teal (#3ab4c5)
   ========================================================================== */

:root {
  --orenda-magenta: #d91b77;
  --orenda-magenta-dark: #b31260;
  --orenda-purple: #4a1d88;
  --orenda-purple-dark: #2e1059;
  --orenda-teal: #3ab4c5;
  --orenda-teal-dark: #2591a1;
  --orenda-dark: #0b0719;
  --orenda-slate: #16102c;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --white: #ffffff;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container & Grid Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-bg-slate {
  background-color: var(--bg-light);
}

.section-bg-dark {
  background-color: var(--orenda-dark);
  color: var(--white);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

/* Brand Gradient Helpers */
.text-gradient {
  background: linear-gradient(135deg, #d91b77 0%, #6d28d9 52%, #3ab4c5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-light {
  background: linear-gradient(135deg, #ff7eb9 0%, #c4b5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.badge-magenta {
  background: #fdf2f8;
  color: var(--orenda-magenta);
  border: 1px solid #fbcfe8;
}

.badge-teal {
  background: #ecfeff;
  color: var(--orenda-teal-dark);
  border: 1px solid #a5f3fc;
}

.badge-purple {
  background: #f5f3ff;
  color: var(--orenda-purple);
  border: 1px solid #ddd6fe;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #d91b77 0%, #4a1d88 55%, #3ab4c5 100%);
  background-size: 200% 200%;
  color: var(--white);
  box-shadow: 0 10px 25px -5px rgba(217, 27, 119, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(217, 27, 119, 0.55);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--orenda-teal);
}

/* Top Info Bar */
.topbar {
  background-color: var(--orenda-dark);
  color: #cbd5e1;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-links a:hover {
  color: var(--orenda-teal);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 10px 30px -10px rgba(22, 16, 44, 0.1);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 1024px) {
  .nav-menu { display: flex; }
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--orenda-magenta), var(--orenda-teal));
  transition: width 0.28s ease;
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--orenda-magenta);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1024px) {
  .nav-actions { display: flex; }
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-main);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

.mobile-drawer {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 20px 24px;
}

.mobile-drawer.open {
  display: block;
}

/* Hero Section */
.hero {
  background:
    radial-gradient(circle at 14% 18%, rgba(217, 27, 119, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 86% 22%, rgba(58, 180, 197, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(74, 29, 136, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, #0b0719 0%, #170e30 52%, #0d1b2a 100%);
  color: var(--white);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  color: var(--white);
  margin-bottom: 22px;
}

.hero-desc {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 28px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card {
  background: rgba(22, 16, 44, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-photo-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 290px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-photo-frame img {
  transform: scale(1.04);
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -12px rgba(74, 29, 136, 0.15);
  border-color: rgba(217, 27, 119, 0.35);
}

.card-photo {
  height: 215px;
  margin: -32px -32px 24px -32px;
  overflow: hidden;
  position: relative;
  background: var(--orenda-dark);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-photo img {
  transform: scale(1.06);
}

.card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 7, 25, 0.82) 0%, rgba(11, 7, 25, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 24px;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}

/* Filter Buttons */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: linear-gradient(135deg, var(--orenda-magenta), var(--orenda-purple));
  color: var(--white);
  border-color: transparent;
}

/* Progress Bars */
.skill-bar-wrap {
  margin-bottom: 20px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.skill-bar-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}

/* Contact Form */
.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: var(--bg-light);
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  background: var(--white);
  border-color: var(--orenda-magenta);
  box-shadow: 0 0 0 3px rgba(217, 27, 119, 0.14);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

/* Footer */
.footer {
  background: #070410;
  color: #94a3b8;
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hidden-item {
  display: none !important;
}


/* ==========================================================================
   MOBILE RESPONSIVENESS FIXES
   ========================================================================== */
@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }
  .hero {
    padding: 56px 0 64px;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .topbar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .topbar-links {
    justify-content: center;
    gap: 12px;
  }
  .grid-2, .grid-3 {
    gap: 32px;
  }
  .card {
    padding: 24px;
  }
  .card-photo {
    margin: -24px -24px 20px -24px;
    height: 180px;
  }
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .grid-6 {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
  .container {
    padding: 0 16px;
  }
}

/* ==========================================================================
   ROBUST MOBILE RESPONSIVE FIXES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
    max-width: 100%;
  }
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .section {
    padding: 56px 0;
  }
  .hero-title {
    font-size: 2.25rem !important;
  }
  .hero-desc {
    font-size: 16px !important;
  }
  .card {
    padding: 20px !important;
  }
  .card-photo {
    margin: -20px -20px 16px -20px !important;
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  .grid-6 {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   ROBUST MOBILE RESPONSIVE FIXES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
    max-width: 100%;
  }
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .section {
    padding: 56px 0;
  }
  .hero-title {
    font-size: 2.25rem !important;
  }
  .hero-desc {
    font-size: 16px !important;
  }
  .card {
    padding: 20px !important;
  }
  .card-photo {
    margin: -20px -20px 16px -20px !important;
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  .grid-6 {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   HERO BUTTONS ALIGNMENT & RESPONSIVENESS FIX
   ========================================================================== */

/* Target the container wrapping your hero buttons */
.hero .container .grid-2 > div:first-child div[style*="display:flex"] {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  justify-content: flex-start; /* Aligns left on large screens */
}

/* Make buttons adapt nicely on smaller screens and mobile devices */
@media (max-width: 767px) {
  .hero {
    text-align: center !important;
  }
  
  .hero .container .grid-2 > div:first-child div[style*="display:flex"] {
    justify-content: center !important; /* Centers buttons on mobile/tablets */
  }
  
  .hero .btn {
    width: 100% !important; /* Full width stacked buttons on small phones for easy tapping */
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   ABOUT US BUTTON ALIGNMENT & RESPONSIVENESS FIX
   ========================================================================== */

/* Target the wrapper or container holding the 'Discuss Your Requirements' button in the About section */
#about .grid-2 > div:last-child {
  text-align: left; /* Default left alignment on desktop */
}

@media (max-width: 767px) {
  #about .grid-2 {
    text-align: center !important;
  }
  
  #about .grid-2 > div:last-child {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #about .grid-2 > div:last-child a.btn-primary {
    width: 100% !important;
    max-width: 280px;
    margin: 10px auto 0 auto;
  }
}

/* ==========================================================================
   OUR SERVICES SECTION ALIGNMENT & RESPONSIVENESS FIX
   ========================================================================== */

/* Default desktop alignment for services section header and service boxes */
#services .section-header {
  text-align: center;
}

#services .media.service-box {
  display: flex;
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 767px) {
  /* Center align section header title and description on mobile */
  #services .section-header {
    text-align: center !important;
  }
  
  #services .section-header .section-title:before,
  #services .section-header .section-title:after {
    left: 50% !important;
    margin-left: -50px !important;
  }

  /* Stack service box icon and text cleanly on mobile screens */
  #services .media.service-box {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  #services .media.service-box .pull-left {
    margin-right: 0 !important;
    margin-bottom: 16px !important;
    float: none !important;
  }

  #services .media.service-box .media-body {
    text-align: center !important;
  }
}

/* ==========================================================================
   CONTACT SECTION & FORM RESPONSIVENESS FIX
   ========================================================================== */

/* Default desktop alignment for contact header and form */
#contact .section-header {
  text-align: center;
}

#contact .grid-2 {
  align-items: stretch;
}

@media (max-width: 767px) {
  /* Center align Get In Touch headers on mobile */
  #contact .badge-pill {
    margin-left: auto;
    margin-right: auto;
  }
  
  #contact .grid-2 > div:first-child {
    text-align: center !important;
  }

  /* Center align the contact office address box and phone/email cards */
  #contact div[style*="display:flex"][style*="gap:16px"] > div {
    text-align: left; /* Keep internal text readable, but align container nicely */
  }

  /* Stack phone and email touch cards on small screens */
  #contact div[style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Ensure the contact form card padding adjusts gracefully */
  #contact .card {
    padding: 24px !important;
  }

  /* Make form input rows stack in a single column on mobile */
  #contact form div[style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Make the form submit button full width and comfortable to tap */
  #contact form button[type="submit"] {
    width: 100% !important;
  }
}
/* ==========================================================================
   FOOTER SECTION ALIGNMENT & RESPONSIVENESS FIX
   ========================================================================== */

/* Default desktop alignment */
.footer {
  text-align: left;
}

.footer .container > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer .container > div:last-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 767px) {
  /* Center align and stack footer elements vertically on mobile screens */
  .footer {
    text-align: center !important;
    padding: 48px 0 24px !important;
  }

  .footer .container > div:first-child {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
    padding-bottom: 24px !important;
  }

  .footer .container > div:first-child > div:first-child {
    justify-content: center !important;
  }

  /* Center navigation links in the footer */
  .footer .container > div:first-child > div:last-child {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px 18px !important;
  }

  /* Stack copyright text and address line gracefully on mobile */
  .footer .container > div:last-child {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    font-size: 12px !important;
  }
}
/* ==========================================================================
   SERVICES ICON & CARD MOBILE RESPONSIVENESS FIX
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}

@media (max-width: 767px) {
  /* Center or clean up card padding and icon alignment on mobile */
  .card {
    padding: 24px !important;
    text-align: left; /* Keep text clean and readable */
  }

  .card .icon-box {
    margin-bottom: 16px !important;
  }
}

/* ==========================================================================
   SERVICES ICON & BOX RESPONSIVENESS FIX
   ========================================================================== */

/* Default desktop service box layout */
.service-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.service-box .pull-left {
  flex-shrink: 0;
  float: none !important;
}

.service-box .media-body {
  flex-grow: 1;
}

@media (max-width: 767px) {
  /* Stack the icon directly above the heading and description on mobile */
  .service-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .service-box .pull-left {
    margin-right: 0 !important;
    margin-bottom: 14px !important;
    float: none !important;
  }

  .service-box .media-body {
    text-align: center !important;
  }
  
  .service-box .media-heading {
    font-size: 18px !important;
    font-weight: 800 !important;
  }
}