/* --- Base Variables & Reset --- */
:root {
  --bg-main: #0a0a0a;
  --bg-card: #121212;
  --bg-card-hover: #1a1a1a;
  --accent-red: #e60023;
  --text-main: #ffffff;
  --text-muted: #888888;
  --font-main: "Poppins", sans-serif;
  --transition: all 0.3s ease;
  --dtw-red-bright: #e7131a;
  --dtw-red-muted: #801014;
  --anim-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden !important; /* Locks horizontal scrolling */
  position: relative;
  width: 100%;
  max-width: 100vw;
}

/* --- Typography & Utilities --- */
.text-red {
  color: var(--accent-red);
}
.logo-red {
  color: var(--accent-red);
  font-weight: 700;
}

/* --- Navbar --- */
/* --- Advanced Header --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background-color: rgba(10, 10, 10, 0.85); /* Glass effect */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

/* Slick underline hover effect */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-red);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-red);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav-cta {
  background: transparent;
  color: var(--text-main);
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-nav-cta:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

/* --- Hamburger Icon (Hidden on Desktop) --- */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001; /* Stays above the mobile menu */
}

.hamburger .bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* --- Filters --- */
.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 1px solid #333;
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

/* --- Portfolio Grid --- */.portfolio-grid {
  display: grid;
  /* Changed from 320px to 280px so cards don't burst out of tiny screens */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.loading-state {
  text-align: center;
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* --- Project Card --- */
.card {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: var(--bg-card-hover);
}

/* --- Updated Project Card Image --- */
/* --- Bulletproof Image Wrapper --- */
.card-img-wrapper {
  width: 100%;
  aspect-ratio: 16/9; /* Keeps all your cards exactly the same size */
  background: #050505; /* Dark background for empty space around tall images */
  position: relative; /* This is the secret ingredient */
  overflow: hidden;
}

/* Ensure the picture tag fills the wrapper completely */
.card-img-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

.card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important; /* Forces the ENTIRE image to stay inside the box */
  transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.year-badge {
  font-size: 0.8rem;
  color: var(--accent-red);
  font-weight: 600;
}

.tags {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

.card-btn {
  display: inline-block;
  text-align: center;
  padding: 10px;
  background: #1a1a1a;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  border: 1px solid #333;
}

.card-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  border-top: 1px solid #222;
  margin-top: 60px;
}

/* --- Fully Optimized Mobile Tweaks --- */
/* --- Fully Optimized Mobile Header --- */
@media (max-width: 992px) {
  /* Show the hamburger icon */
  .hamburger {
    display: flex;
  }

  /* Transform the nav menu into a mobile dropdown */
  .nav-menu {
    position: absolute;
    top: 100%; /* Sits exactly below the header */
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    /* The sliding animation trick */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
  }

  /* When the 'active' class is added via JS, it slides open */
  .nav-menu.active {
    max-height: 400px;
    padding: 30px 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    margin-bottom: 30px;
  }

  .btn-nav-cta {
    width: 80%;
    text-align: center;
  }

  /* Hamburger to 'X' Animation */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Adjust Hero for smaller screens */
/* Ensure card padding feels right on mobile */
/* .card-content {
  padding: 15px;
} */

/* ========================================== */
/* HIGH-PERFORMANCE PORTAL HERO               */
/* ========================================== */
.dtw-advanced-hero * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
  text-decoration: none !important;
}

.dtw-advanced-hero {
  width: 100%;
  min-height: 90vh;
  background-color: var(--dtw-dark-bg);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 20px 0 100px 0 !important;
}

/* Sophisticated Depth Gradient */
.dtw-advanced-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(231, 19, 26, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 60%
    );
  z-index: 0;
  pointer-events: none;
}

.dtw-advanced-hero-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* --- Left Column (Content) --- */
.dtw-hero-col-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeHeroIn 1.2s var(--anim-ease) backwards;
}

@keyframes fadeHeroIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Premium Gold Trust Pill */
.dtw-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.03),
    rgba(255, 215, 0, 0.1)
  );
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.dtw-trust-pill svg {
  width: 18px;
  height: 18px;
  fill: #ffd700;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

.dtw-trust-pill span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* H1 Heading */
.dtw-hero-h1 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
  max-width: 90%;
}

.dtw-hero-h1 span {
  display: block;
  color: var(--dtw-red-bright);
  text-shadow: 0 0 30px rgba(231, 19, 26, 0.3);
}

/* Description */
.dtw-hero-p {
  color: var(--dtw-text-sub);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 85%;
}

.dtw-desc-bold {
  color: #ffffff;
  font-weight: 600;
}

/* Call To Action Buttons */
.dtw-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dtw-btn {
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.dtw-btn-primary {
  background: var(--dtw-red-bright);
  color: #fff;
  box-shadow: 0 10px 25px rgba(231, 19, 26, 0.3);
  border-color: var(--dtw-red-bright);
}

.dtw-btn-primary:hover {
  background: #c10f15;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(231, 19, 26, 0.4);
}

.dtw-btn-primary svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.dtw-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.dtw-btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-4px);
}

.dtw-btn-secondary svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  transition: transform 0.3s ease;
}

.dtw-btn-secondary:hover svg {
  transform: translateX(6px);
}

/* --- Right Column (Visuals) --- */
.dtw-hero-col-visuals {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Central Floating Circular Frame */
.dtw-central-frame {
  width: 75%;
  aspect-ratio: 1/1;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(12, 12, 14, 0.3) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 2px solid rgba(231, 19, 26, 0.3);
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.7),
    inset 0 0 30px rgba(231, 19, 26, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: floatFrame 8s ease-in-out infinite;
  z-index: 10;
}

@keyframes floatFrame {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.dtw-avatar-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  animation: breathAvatar 6s ease-in-out infinite;
}

@keyframes breathAvatar {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  }
  50% {
    transform: scale(1.03);
    filter: brightness(1.1) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));
  }
}

/* --- Floating Tech Icons --- */
.dtw-floating-tech-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 11;
  transition: all 0.3s ease;
}

.dtw-floating-tech-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.dtw-ico-1 {
  top: 15%;
  left: 0;
  animation: floatIco1 10s ease-in-out infinite;
  border-color: rgba(227, 79, 38, 0.4);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(227, 79, 38, 0.2);
}
@keyframes floatIco1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -10px);
  }
}

.dtw-ico-2 {
  top: 0;
  right: 15%;
  animation: floatIco2 12s ease-in-out infinite;
  border-color: rgba(231, 19, 26, 0.4);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(231, 19, 26, 0.2);
}
@keyframes floatIco2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-15px, 15px);
  }
}

.dtw-ico-3 {
  top: 45%;
  left: -10%;
  animation: floatIco3 9s ease-in-out infinite;
  border-color: rgba(146, 0, 59, 0.4);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(146, 0, 59, 0.2);
}
@keyframes floatIco3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-8px, 12px);
  }
}

.dtw-ico-4 {
  top: 40%;
  right: -5%;
  animation: floatIco4 11s ease-in-out infinite;
  border-color: rgba(255, 184, 0, 0.4);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(255, 184, 0, 0.2);
}
@keyframes floatIco4 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -8px);
  }
}

.dtw-ico-5 {
  bottom: 5%;
  left: 10%;
  animation: floatIco5 13s ease-in-out infinite;
  border-color: rgba(0, 196, 204, 0.4);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(0, 196, 204, 0.2);
}
@keyframes floatIco5 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(15px, 15px);
  }
}

.dtw-ico-6 {
  bottom: 10%;
  right: 5%;
  animation: floatIco6 14s ease-in-out infinite;
  border-color: rgba(33, 117, 155, 0.4);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(33, 117, 155, 0.2);
}
@keyframes floatIco6 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-12px, -12px);
  }
}

/* --- Mobile Breakpoints --- */
@media (max-width: 1024px) {
  .dtw-advanced-hero-container {
    gap: 40px;
  }
  .dtw-hero-h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .dtw-advanced-hero {
    padding: 30px 0 60px 0 !important;
    min-height: auto;
  }
  .dtw-advanced-hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .dtw-hero-col-content,
  .dtw-hero-actions {
    align-items: center;
  }

  .dtw-hero-h1 {
    font-size: 2.2rem;
    max-width: 100%;
    margin-bottom: 15px;
  }
  .dtw-hero-p {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    margin-bottom: 30px;
  }
  .dtw-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .dtw-btn {
    width: 100%;
    justify-content: center;
  }

  .dtw-hero-col-visuals {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
  .dtw-central-frame {
    width: 80%;
    animation: none;
  }

  .dtw-floating-tech-icon {
    width: 40px;
    height: 40px;
  }
  .dtw-floating-tech-icon svg {
    width: 18px;
    height: 18px;
  }
  .dtw-ico-1 {
    top: 10%;
    left: 0;
  }
  .dtw-ico-2 {
    top: 5%;
    right: 5%;
  }
  .dtw-ico-3 {
    top: 45%;
    left: -5%;
  }
  .dtw-ico-4 {
    top: 40%;
    right: -5%;
  }
  .dtw-ico-5 {
    bottom: 10%;
    left: 5%;
  }
  .dtw-ico-6 {
    bottom: 15%;
    right: 0;
  }
}

/* --- Dynamic Typing Text & Cursor --- */
/* --- Dynamic Typing Text & Cursor Fix --- */
.dtw-hero-h1 .typing-text {
  display: inline; /* This forces the text to stay on the same line as the cursor */
  color: var(--dtw-red-bright);
  text-shadow: 0 0 30px rgba(231, 19, 26, 0.3);
}

.dtw-hero-h1 .dtw-cursor {
  display: inline; /* This forces the cursor to hug the last letter */
  color: var(--dtw-red-bright);
  font-weight: 300;
  margin-left: 2px; /* Adds just a tiny bit of breathing room for the cursor */
  animation: dtw-blink 1s step-end infinite;
}

@keyframes dtw-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* --- Read More / Read Less Styling --- */
.card-desc-container {
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes the 'View Live Site' button to the bottom */
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  /* The Line Clamp Magic */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Shows only 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* This class is added by JS when the user clicks 'Read More' */
.card-desc.expanded {
  -webkit-line-clamp: unset;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0 0 0;
  font-family: var(--font-main);
  transition: var(--transition);
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* --- ISO Certification Section --- */
.iso-section {
  padding: 80px 5%;
  background-color: var(--bg-main);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.iso-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.iso-image-wrapper {
  position: relative;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--accent-red) 0%,
    rgba(0, 0, 0, 0) 50%,
    var(--accent-red) 100%
  );
  border-radius: 12px;
}

.iso-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 5px solid var(--bg-card); /* Inner dark border */
}

.iso-badge {
  display: inline-block;
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border: 1px solid rgba(230, 0, 35, 0.3);
  border-radius: 30px;
  margin-bottom: 25px;
}

.iso-badge i {
  margin-right: 8px;
}

.iso-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 700;
}

.iso-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.iso-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-top: 3px;
}

.feature-text h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Upwork Banner Section --- */
.upwork-section {
  padding: 40px 5% 80px;
}

.upwork-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #0d110e; /* Very dark green tint */
  border: 1px solid #1a3b1f; /* Upwork green border */
  border-radius: 16px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 10px 30px rgba(20, 168, 0, 0.05);
}

.text-green {
  color: #14a800;
  font-weight: 600;
}

.upwork-logo {
  background: #14a800;
  color: #fff;
  width: 65px;
  height: 65px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.upwork-content {
  flex-grow: 1;
}

.upwork-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.upwork-stars {
  color: #14a800;
  font-size: 1rem;
  letter-spacing: 2px;
}

.upwork-desc {
  color: #a0a0a0;
  font-size: 0.95rem;
}

.btn-upwork {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 1px solid #14a800;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-upwork:hover {
  background: #14a800;
  box-shadow: 0 0 15px rgba(20, 168, 0, 0.3);
}

/* --- Advanced Footer --- */
.footer-advanced {
  background-color: #050505; /* Slightly darker than main background for contrast */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 60px;
  margin-top: 80px;
  font-family: var(--font-main);
}

/* Pre-Footer CTA */
.footer-cta {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.footer-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.footer-cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.footer-bottom {
  text-align: center;
  padding: 25px 20px;
  background-color: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-5px);
}

/* ========================================== */
/* ELITE TECH DASHBOARD WIDGET                */
/* ========================================== */
:root {
  --dtw-dark-bg: var(--bg-main); /* Merged with your existing dark background */
  --dtw-text-main: #f5f5f7;
  --dtw-text-sub: #b0b0b7;
  --anim-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.dtw-tech-dashboard-wrapper {
  width: 100%;
  background-color: var(--dtw-dark-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Futuristic Grid Background */
.dtw-tech-dashboard-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* Central glowing spotlight */
.dtw-tech-dashboard-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(230, 0, 35, 0.05) 0%,
    transparent 70%
  ); /* Matched to your agency red */
  z-index: 0;
  pointer-events: none;
}

.dtw-tech-header {
  position: relative;
  z-index: 1;
  color: var(--dtw-text-main);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 50px;
  text-align: center;
}

.dtw-tech-header span {
  color: var(--accent-red);
}

/* --- Infinite Marquee Container --- */
.dtw-marquee-container {
  width: 100%;
  max-width: 1400px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  padding: 20px 0;
}

/* Edge fade masks */
.dtw-marquee-container::before,
.dtw-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15vw;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.dtw-marquee-container::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--dtw-dark-bg) 0%,
    transparent 100%
  );
}
.dtw-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--dtw-dark-bg) 0%, transparent 100%);
}

.dtw-marquee-track {
  display: inline-block;
  animation: scrollTech 40s linear infinite;
}

.dtw-marquee-container:hover .dtw-marquee-track {
  animation-play-state: paused;
}

@keyframes scrollTech {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Glass Cards --- */
.dtw-tech-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 130px;
  margin: 0 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  vertical-align: middle;
  transition: all 0.4s var(--anim-ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.dtw-tech-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transition: all 0.4s var(--anim-ease);
}

.dtw-tech-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
}

.dtw-tech-card svg {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
  transition:
    transform 0.4s var(--anim-ease),
    filter 0.4s ease;
}

.dtw-tech-card:hover svg {
  transform: scale(1.15);
}

.dtw-tech-name {
  color: var(--dtw-text-sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* --- Brand Colors & Glows (Original + New) --- */
.dtw-tech-card.wp::after {
  background: #21759b;
  box-shadow: 0 0 15px #21759b;
}
.dtw-tech-card.wp svg {
  fill: #21759b;
}
.dtw-tech-card.wp:hover {
  border-color: rgba(33, 117, 155, 0.4);
}

.dtw-tech-card.elem::after {
  background: #92003b;
  box-shadow: 0 0 15px #92003b;
}
.dtw-tech-card.elem svg {
  fill: #92003b;
}
.dtw-tech-card.elem:hover {
  border-color: rgba(146, 0, 59, 0.4);
}

.dtw-tech-card.rank::after {
  background: #ffb800;
  box-shadow: 0 0 15px #ffb800;
}
.dtw-tech-card.rank svg {
  stroke: #ffb800;
}
.dtw-tech-card.rank:hover {
  border-color: rgba(255, 184, 0, 0.4);
}

.dtw-tech-card.canv::after {
  background: #00c4cc;
  box-shadow: 0 0 15px #00c4cc;
}
.dtw-tech-card.canv svg {
  fill: #00c4cc;
}
.dtw-tech-card.canv:hover {
  border-color: rgba(0, 196, 204, 0.4);
}

.dtw-tech-card.html::after {
  background: #e34f26;
  box-shadow: 0 0 15px #e34f26;
}
.dtw-tech-card.html svg {
  fill: #e34f26;
}
.dtw-tech-card.html:hover {
  border-color: rgba(227, 79, 38, 0.4);
}

.dtw-tech-card.php::after {
  background: #777bb4;
  box-shadow: 0 0 15px #777bb4;
}
.dtw-tech-card.php svg {
  fill: #777bb4;
}
.dtw-tech-card.php:hover {
  border-color: rgba(119, 123, 180, 0.4);
}

/* NEW: JavaScript (Yellow) */
.dtw-tech-card.js::after {
  background: #f7df1e;
  box-shadow: 0 0 15px #f7df1e;
}
.dtw-tech-card.js svg {
  fill: #f7df1e;
}
.dtw-tech-card.js:hover {
  border-color: rgba(247, 223, 30, 0.4);
}

/* NEW: Python (Blue) */
.dtw-tech-card.py::after {
  background: #3776ab;
  box-shadow: 0 0 15px #3776ab;
}
.dtw-tech-card.py svg {
  fill: #3776ab;
}
.dtw-tech-card.py:hover {
  border-color: rgba(55, 118, 171, 0.4);
}

/* NEW: React (Cyan) */
.dtw-tech-card.react::after {
  background: #61dafb;
  box-shadow: 0 0 15px #61dafb;
}
.dtw-tech-card.react svg {
  stroke: #61dafb;
}
.dtw-tech-card.react:hover {
  border-color: rgba(97, 218, 251, 0.4);
}

/* NEW: GitHub (White) */
.dtw-tech-card.git::after {
  background: #ffffff;
  box-shadow: 0 0 15px #ffffff;
}
.dtw-tech-card.git svg {
  fill: #ffffff;
}
.dtw-tech-card.git:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.dtw-tech-card:hover .dtw-tech-name {
  color: #ffffff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .dtw-tech-header {
    font-size: 24px;
    padding: 0 20px;
  }
  .dtw-tech-card {
    width: 140px;
    height: 110px;
    margin: 0 10px;
  }
  .dtw-tech-card svg {
    height: 32px;
  }
  .dtw-tech-name {
    font-size: 11px;
  }
  .dtw-marquee-container::before,
  .dtw-marquee-container::after {
    width: 40px;
  }
}

/* --- Optimized Mobile Layout & Overlap Fix --- */
@media (max-width: 992px) {
  .iso-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .iso-title {
    font-size: 2.2rem;
  }
  .iso-image-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .iso-features {
    grid-template-columns: 1fr;
  }

  .upwork-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .upwork-title {
    justify-content: center;
    flex-wrap: wrap;
  }

  .card-content {
    padding: 15px;
  }

  .btn-upwork {
    width: 100%;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}


/* --- Ultra-Small Mobile Optimization (320px - 360px) --- */
@media (max-width: 360px) {
  .dtw-advanced-hero-container {
    padding: 0 10px; /* Reduces side padding to give the text more horizontal space */
  }
  
  .dtw-hero-h1 {
    font-size: 1.7rem; /* Shrinks the massive text so long words fit perfectly */
  }
  
  .dtw-trust-pill {
    font-size: 10px; /* Scales down the top pill */
    padding: 6px 12px;
  }
  
  .dtw-btn {
    font-size: 14px; /* Slightly scales down the buttons to prevent cramping */
    padding: 12px 20px;
  }
}