body,
html {
  font-family: "Open Sans", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #777;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
}
h2,
h3,
h4 {
  font-family: "Raleway", sans-serif;
}
h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: #333;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
h4 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}
h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}
p {
  font-size: 15px;
}
p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}
a {
  color: #608dfd;
  font-weight: 400;
}
a:hover,
a:focus {
  text-decoration: none;
  color: #608dfd;
}
ul,
ol {
  list-style: none;
}
ul,
ol {
  padding: 0;
}
hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: #1e7a46;
  margin-bottom: 20px;
  border: 0;
}

/* ============================================================
   NAVIGATION (consolidated - OverX)
   One coherent block. Theme-aware via --nav-bg / --text-color
   with fallbacks. Pairs with the updated Navigation.jsx
   (adds .scrolled on scroll and .active on the current
   section's <li>).
   ============================================================ */
#menu {
  padding: 14px 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease,
    background-color 0.4s ease;
}

/* Let the brand flex-center inside the header */
#menu .navbar-header {
  display: flex;
  align-items: center;
}

#menu.navbar-default {
  background-color: var(--nav-bg, #fff);
  border: none;
  box-shadow: none;
}

/* Shrink + soft shadow once the user scrolls */
#menu.navbar-default.scrolled {
  padding: 4px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Brand: logo icon + wordmark in one aligned, centered row */
#menu a.navbar-brand.overx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  float: none;           /* override Bootstrap 3's float:left */
  height: auto;
  padding: 8px 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
}

.nav-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height 0.3s ease;
}

#menu.scrolled .nav-logo {
  height: 46px;
}

.brand-text {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-color, #333);
}

/* Accent X, matching the hero's "BRANDS.X" */
.brand-x {
  color: #f16623;
}

/* Nav links */
#menu.navbar-default .navbar-nav > li > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: var(--text-color, #555);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 2px;
  margin: 16px 20px 0;
  border-radius: 0;
  position: relative;
  transition: color 0.25s ease;
}

#menu.navbar-default .navbar-nav > li > a:hover,
#menu.navbar-default .navbar-nav > li > a:focus {
  color: #f16623;
  background: transparent;
}

/* Animated underline on hover */
#menu.navbar-default .navbar-nav > li > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #f16623 0%, #515863 100%);
  content: "";
  transition: width 0.2s;
}

#menu.navbar-default .navbar-nav > li > a:hover:after {
  width: 100%;
}

/* Active section (driven by scroll position in Navigation.jsx) */
#menu.navbar-default .navbar-nav > li.active > a {
  color: #f16623;
  background-color: transparent;
}

#menu.navbar-default .navbar-nav > li.active > a:after {
  width: 100%;
}

/* Theme toggle: keep aligned with the link row */
#menu .navbar-nav > li > .theme-toggle-btn {
  margin-top: 16px;
}

/* Hamburger (mobile) */
.navbar-toggle {
  border-radius: 0;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: transparent;
  border-color: #f16623;
}
.navbar-default .navbar-toggle:hover > .icon-bar {
  background-color: #f16623;
}

/* ============================================================ */

.section-title {
  margin-bottom: 70px;
}
.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
.section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #515863 0%, #f16623 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
.section-title p {
  font-size: 18px;
}
.btn-custom {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: #515863;
  background-image: linear-gradient(to right, #515863 0%, #f16623 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.5s linear;
  border: 0;
}
.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: #fff;
  background-image: none;
  background-color: #f16623;
}
.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}
a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}
/* Header Section */
.intro {
  display: table;
  width: 100%;
  padding: 0;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}
.intro .overlay {
  background: rgba(0, 0, 0, 0.2);
}
.intro h1 {
  font-family: "Raleway", sans-serif;
  color: #fff;
  font-size: 82px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
}
.intro h1 span {
  font-weight: 800;
  color: #515863;
}
.intro p {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
  margin: 0 auto;
  margin-bottom: 60px;
}
header .intro-text {
  padding-top: 350px;
  padding-bottom: 200px;
  text-align: center;
}
#features {
  padding: 100px 0;
}

#about {
  padding: 100px 0;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.why-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 15px;
  color: var(--text-color, #555);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  text-align: left;
}

.why-list li:last-child {
  border-bottom: none;
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f16623;
  flex-shrink: 0;
}

/* ===== Features: icon circles + hover "jump" ===== */

/* Gradient circle around each icon (matches the design) */
#features i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 22px;
  border-radius: 50%;
  font-size: 38px;
  color: #fff;
  background: linear-gradient(135deg, #ee6b2f 0%, #c0552b 52%, #7d6b62 100%);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Whole card lifts on hover */
#features .row > div {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
#features .row > div:hover {
  transform: translateY(-14px);
}

/* Icon pops + glows on hover */
#features .row > div:hover i {
  transform: scale(1.08);
  box-shadow: 0 22px 34px rgba(232, 98, 44, 0.4);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #features .row > div,
  #features i {
    transition: none;
  }
  #features .row > div:hover {
    transform: none;
  }
  #features .row > div:hover i {
    transform: none;
  }
}
/* ===== Services Section ===== */
#services {
  padding: 100px 0;
  background: var(--section-alt-bg, #f9f9f9);
}

#services .col-md-4 {
  padding: 30px 20px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

#services .col-md-4:hover {
  transform: translateY(-12px);
}

#services i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 26px;
  border-radius: 50%;
  font-size: 48px;
  color: #fff;
  background: linear-gradient(135deg, #ee6b2f 0%, #c0552b 52%, #7d6b62 100%);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

#services .col-md-4:hover i {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 24px 40px rgba(232, 98, 44, 0.45);
  background: linear-gradient(135deg, #ff7d3f 0%, #d4622e 52%, #8d7b70 100%);
}

.service-desc h3 {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color, #333);
  transition: color 0.3s ease;
}

#services .col-md-4:hover .service-desc h3 {
  color: #f16623;
}

@media (prefers-reduced-motion: reduce) {
  #services .col-md-4,
  #services i {
    transition: none;
  }
  #services .col-md-4:hover {
    transform: none;
  }
  #services .col-md-4:hover i {
    transform: none;
  }
}

/* Testimonials Section */
#testimonials {
  padding: 100px 0;
  background: #f6f6f6;
}
#testimonials i {
  color: #e6e6e6;
  font-size: 32px;
  margin-bottom: 20px;
}
.testimonial {
  position: relative;
  padding: 20px;
}
.testimonial-image {
  float: left;
  margin-right: 15px;
}
.testimonial-image,
.testimonial-image img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.testimonial-content {
  position: relative;
  overflow: hidden;
}
.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-style: italic;
}
.testimonial-meta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}
/* Team Section */
#team {
  padding: 100px 0;
}

/* Centre the row regardless of how many cards */
#team .team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

#team .team-card-wrap {
  display: flex;
  justify-content: center;
}

/* ---- Flip card wrapper ---- */
#team .flip-card {
  perspective: 1000px;
  width: 300px;
  height: 460px;
}

#team .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

#team .flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* ---- Shared face styles ---- */
#team .flip-card-front,
#team .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ---- Front face ---- */
#team .flip-card-front {
  background: var(--card-bg, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 24px;
}

#team .team-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f16623;
  margin-bottom: 20px;
  display: block;
}

#team .flip-card-caption h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color, #333);
}

#team .flip-card-caption p {
  margin: 0;
  color: #888;
  font-size: 14px;
}

/* ---- Back face ---- */
#team .flip-card-back {
  background: linear-gradient(135deg, #ee6b2f 0%, #c0552b 52%, #7d6b62 100%);
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  text-align: center;
  gap: 18px;
}

.flip-card-quote-icon {
  font-size: 26px;
  opacity: 0.55;
  flex-shrink: 0;
}

#team .flip-card-back p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

.flip-card-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  #team .flip-card-inner {
    transition: none;
  }
}
/* Contact Section */
#contact {
  padding: 100px 0 60px;
  background: linear-gradient(to right, #f16623 0%, #515863 100%);
  color: rgba(255, 255, 255, 0.75);
}
#contact .section-title {
  margin-bottom: 40px;
}
#contact .section-title p {
  font-size: 16px;
}
#contact h2 {
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 30px;
}
#contact h3 {
  color: #fff;
  margin-top: 80px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  font-weight: 400;
}
#contact form {
  padding-top: 20px;
}
#contact .text-danger {
  color: #cc0033;
  text-align: left;
}
#contact .btn-custom {
  margin: 30px 0;
  background: transparent;
  border: 2px solid #fff;
}
#contact .btn-custom:hover {
  color: #1f386e;
  background: #fff;
}
label {
  font-size: 12px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  float: left;
}
#contact .form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
  background-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 4px;
}
#contact .form-control:focus {
  border-color: #fff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.status-message-container {
  min-height: 36px;
  margin-bottom: 4px;
}

.status-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.status-msg.sending {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.status-msg.success {
  background: rgba(40, 200, 100, 0.2);
  border: 1px solid rgba(40, 200, 100, 0.5);
  color: #caffb9;
}

.status-msg.error {
  background: rgba(255, 80, 80, 0.2);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ffcaca;
}
.form-control::-webkit-input-placeholder {
  color: #777;
}
.form-control:-moz-placeholder {
  color: #777;
}
.form-control::-moz-placeholder {
  color: #777;
}
.form-control:-ms-input-placeholder {
  color: #777;
}
#contact .contact-item {
  margin: 20px 0;
}
#contact .contact-item span {
  color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  display: block;
}
#contact .contact-item i.fa {
  margin-right: 10px;
}
#contact .contact-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}
#contact .contact-item a:hover {
  color: #fff;
  text-decoration: underline;
}
#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
  margin-top: 50px;
  text-align: center;
}
#contact .social ul li {
  display: inline-block;
  margin: 0 20px;
}
#contact .social i.fa {
  font-size: 22px;
  width: 48px;
  height: 48px;
  padding: 12px 0;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}
#contact .social i.fa:hover {
  color: #608dfd;
  background: #fff;
}

/* =====================================================
   STATS
   ===================================================== */
#stats {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 60%, #3a2a20 100%);
  padding: 60px 0;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1 1 180px;
  text-align: center;
  padding: 20px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: "Raleway", sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: #f16623;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
  .stat-item {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* =====================================================
   TECH STACK
   ===================================================== */
#techstack {
  padding: 100px 0;
  background: var(--section-alt-bg, #f9f9f9);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.tech-category {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  padding: 24px 28px;
  min-width: 200px;
  flex: 1 1 200px;
  max-width: 260px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.tech-category-title {
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f16623;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1662322;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(241, 102, 35, 0.08);
  color: var(--text-color, #444);
  border: 1px solid rgba(241, 102, 35, 0.2);
  transition: background 0.2s, color 0.2s;
}

.tech-tag:hover {
  background: #f16623;
  color: #fff;
  border-color: #f16623;
}

.tech-tag {
  cursor: pointer;
}

/* Tech popup */
.tech-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tech-popup {
  background: var(--card-bg, #fff);
  border-radius: 14px;
  padding: 28px 28px 24px;
  max-width: 360px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: popIn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.tech-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.tech-popup-close:hover {
  color: #f16623;
  background: rgba(241, 102, 35, 0.08);
}

.tech-popup-name {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f16623;
  margin: 0 0 10px;
}

.tech-popup-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-color, #555);
  margin: 0;
}

/* =====================================================
   PROCESS
   ===================================================== */
#process {
  padding: 100px 0;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(to right, #f16623, #515863);
  z-index: 0;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-steps.process-animate::before {
  transform: scaleX(1);
}

@keyframes processStepIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.process-step {
  flex: 1 1 200px;
  max-width: 240px;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.process-steps.process-animate .process-step {
  animation: processStepIn 0.5s ease both;
}

.process-step-number {
  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f16623;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.process-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ee6b2f 0%, #c0552b 52%, #7d6b62 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(241, 102, 35, 0.3);
}

.process-icon-wrap i {
  font-size: 28px;
  color: #fff;
}

.process-step h3 {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color, #333);
}

.process-step p {
  font-size: 13.5px;
  color: #888;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .process-steps::before {
    display: none;
  }
  .process-step {
    flex: 1 1 100%;
    max-width: 340px;
    padding: 20px;
  }
}

/* =====================================================
   PORTFOLIO
   ===================================================== */
#portfolio {
  padding: 100px 0;
  background: var(--section-alt-bg, #f9f9f9);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg, #fff);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(238, 107, 47, 0.93) 0%, rgba(81, 88, 99, 0.93) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  gap: 14px;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.portfolio-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.portfolio-tech-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.portfolio-info {
  padding: 16px 20px;
}

.portfolio-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f16623;
}

.portfolio-info h4 {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color, #333);
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   CTA BANNER
   ===================================================== */
#cta {
  background: linear-gradient(135deg, #ee6b2f 0%, #c0552b 55%, #515863 100%);
  padding: 80px 20px;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

#cta h2 {
  font-family: "Raleway", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}

#cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  background: #fff;
  color: #ee6b2f;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn i {
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  color: #ee6b2f;
  text-decoration: none;
}

.cta-btn:hover i {
  transform: translateX(4px);
}

/* =====================================================
   DARK MODE OVERRIDES for new sections
   ===================================================== */
[data-theme='dark'] .tech-category {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] .tech-tag {
  background: rgba(241, 102, 35, 0.14);
  border-color: rgba(241, 102, 35, 0.3);
  color: #e0e0e0;
}

[data-theme='dark'] .tech-tag:hover {
  background: #f16623;
  color: #fff;
}

[data-theme='dark'] .tech-category-title {
  border-bottom-color: rgba(241, 102, 35, 0.2);
}

[data-theme='dark'] .tech-popup {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme='dark'] .tech-popup-desc {
  color: #ccc;
}

[data-theme='dark'] .process-step p {
  color: #aaa;
}

[data-theme='dark'] .portfolio-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] .portfolio-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

[data-theme='dark'] #footer {
  background: #0a0a0c;
  color: #aaa;
}

/* Footer Section*/
#footer {
  background: #f6f6f6;
  padding: 30px 0;
}
#footer p {
  color: #888;
  font-size: 14px;
}
#footer a {
  color: #608dfd;
}
#footer a:hover {
  border-bottom: 2px solid #608dfd;
}

/* =====================================================
   ABOUT IMAGE (kept for legacy reference)
   ===================================================== */
.about-img {
  width: 100%;
  max-width: 480px;
  height: 395px;
  object-fit: cover;
  display: block;
}

/* =====================================================
   ABOUT — BRAND PANEL
   ===================================================== */
.about-brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 360px;
  padding: 48px 32px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(238, 107, 47, 0.10) 0%, rgba(81, 88, 99, 0.12) 100%);
  border: 1px solid rgba(241, 102, 35, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
  text-align: center;
  gap: 20px;
}

.about-brand-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(241, 102, 35, 0.35));
}

.about-brand-wordmark {
  font-family: "Raleway", sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-color, #333);
}

.about-brand-wordmark .brand-x {
  color: #f16623;
}

.about-brand-tagline {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f16623;
  margin: 0;
  opacity: 0.85;
}

[data-theme='dark'] .about-brand-panel {
  background: linear-gradient(145deg, rgba(238, 107, 47, 0.13) 0%, rgba(81, 88, 99, 0.18) 100%);
  border-color: rgba(241, 102, 35, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

/* =====================================================
   MOBILE — 768px and below
   ===================================================== */
@media (max-width: 768px) {
  /* About brand panel */
  .about-brand-panel {
    min-height: 280px;
    padding: 36px 24px;
    margin-bottom: 30px;
  }
  .about-brand-logo {
    width: 80px;
  }

  /* Reduce section padding */
  #features, #about, #services, #team, #contact {
    padding: 60px 0;
  }
  #process, #portfolio, #techstack {
    padding: 60px 0;
  }
  #cta {
    padding: 60px 20px;
  }

  /* Contact */
  #contact h3 {
    margin-top: 40px;
  }

  /* Team cards: constrain to viewport */
  #team .flip-card {
    width: 100%;
    max-width: 300px;
  }

  /* Nav brand sizing */
  .brand-text {
    font-size: 1.8rem;
  }
  .nav-logo {
    height: 46px;
  }

  /* Section title */
  .section-title {
    margin-bottom: 40px;
  }

  /* CTA heading */
  #cta h2 {
    font-size: 1.8rem;
  }

  /* Services: stack to 1 col */
  #services .col-md-4 {
    width: 100%;
    float: none;
  }
}

/* =====================================================
   SMALL MOBILE — 480px and below
   ===================================================== */
@media (max-width: 480px) {
  /* Tighter section padding */
  #features, #about, #services, #team, #portfolio, #process, #techstack {
    padding: 50px 0;
  }
  #contact {
    padding: 50px 0 40px;
  }
  #stats {
    padding: 40px 0;
  }

  /* Features: 1 column */
  #features .col-xs-6 {
    width: 100% !important;
    float: none;
  }

  /* Team card: full width */
  #team .flip-card {
    width: calc(100vw - 60px);
    height: 420px;
  }

  /* Nav brand */
  .brand-text {
    font-size: 1.4rem;
  }
  .nav-logo {
    height: 36px;
  }

  /* Headings */
  .section-title h2, h2 {
    font-size: 26px;
  }

  /* Section title */
  .section-title {
    margin-bottom: 30px;
  }

  /* Stats */
  .stat-number {
    font-size: 2.4rem;
  }

  /* CTA */
  #cta h2 {
    font-size: 1.5rem;
  }
  #cta p {
    font-size: 1rem;
  }
  .cta-btn {
    padding: 12px 26px;
    font-size: 14px;
  }

  /* Contact */
  #contact h3 {
    margin-top: 30px;
  }

  /* Services icon */
  #services i {
    width: 90px;
    height: 90px;
    font-size: 36px;
  }

  /* Process */
  .process-step {
    max-width: 100%;
    padding: 20px 10px;
  }
}