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

:root {
  --primary-color: rgb(208, 156, 0);
  --bg-color: #ffffff;
  --accent-color: #d09c0013;
  --text-color: #535154;
}

body {
  background-color: var(--bg-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.navbar {
  background: transparent;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  border-bottom: 1px solid #cccccc3a;
  padding: 40px 0;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.096) ;
  z-index: 99;
  margin-bottom: -60px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  margin-left: 10px;
  margin-bottom: 10px;
}

.logo-image{
  height: 50px;
  width: 50px;
  border-radius:50%;
  background-color: #535152;
  background-image: url('dhub_logo_1.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.336);
  margin-right: 5px;
  
}

.logo-text{
  line-height: 1.2;
  align-self: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.menu-close-btn {
  display: none;
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navlinks ul {
  margin-right: 30px;
  display: flex;
  list-style-type: none;

  a {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 20px;
    border-radius: 10px;
    transition: 0.4s;
  }

  a:hover {
    background-color: var(--accent-color);
  }

  .nav-link.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 0;
  }
}

.hero {
  display: flex;
  width: 100vw;
  min-height: 200px;
  align-items: center;
  padding: 40px 20px;
  margin-top: 60px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.527)), url('hero_features.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 40vh;

  .hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;

    h1 {
      font-size: clamp(32px, 5vw, 50px);
      color: var(--primary-color);
      line-height: 1.2;
      margin-bottom: 20px;
    }

    p {
      font-size: clamp(16px, 2.5vw, 20px);
      max-width: 600px;
      margin: 0 auto;
      line-height: 1.5;
      color: var(--bg-color);
    }
  }
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 100px;
  padding: 0 20px;

  .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 60px);
    width: 100%;
    max-width: 1200px;
    padding: 20px;

    .card {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
      border: 2px solid #f6f5f5;
      padding: clamp(15px, 2vw, 20px);
      border-radius: 20px;
      text-align: center;
      box-shadow: 0 20px 20px rgba(95, 95, 95, 0.12);
      transition: 0.4s ease-in-out;

      .card-image {
        width: clamp(60px, 8vw, 100px);
        height: clamp(60px, 8vw, 100px);
        margin-bottom: 15px;
      }

      h2 {
        color: var(--primary-color);
        font-size: clamp(18px, 2.5vw, 24px);
        margin-bottom: 10px;
      }

      p {
        font-size: clamp(14px, 1.5vw, 16px);
        line-height: 1.5;
      }
    }
    .card:hover {
      transform: translate(0, -10px);
    }
  }

  .title{
      position: relative;
      text-align: center;
      color: var(--primary-color);
      font-size: 3rem;
      padding-bottom: 8px;
      margin: 50px 0;
    }
    .title::after{
      position: absolute;
      content: "";
      background-color: #6d6d6d;
      border-radius: 15px;
      border: 1px solid #72727228;
      width: 50%;
      height: 2.5px;
      left: 25%;
      bottom: 0;
    }

  .bottom-cards {
    margin-top: clamp(30px, 5vw, 60px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 60px);
    width: 100%;
    max-width: 1200px;
    padding: 20px;

    .card {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
      border: 2px solid #f6f5f5;
      padding: clamp(15px, 2vw, 20px);
      border-radius: 20px;
      text-align: center;
      box-shadow: 0 20px 20px rgba(95, 95, 95, 0.12);
      transition: 0.4s ease-in-out;

      .card-image {
        width: clamp(60px, 8vw, 100px);
        height: clamp(60px, 8vw, 100px);
        margin-bottom: 15px;
      }

      h2 {
        color: var(--primary-color);
        font-size: clamp(18px, 2.5vw, 24px);
        margin-bottom: 10px;
      }

      p {
        font-size: clamp(14px, 1.5vw, 16px);
        line-height: 1.5;
      }
    }
    .card:hover {
      transform: translate(0, -10px);
    }
  }
}

hr {
  margin-top: 20px;
  color: var(--text-color);
  width: 95%;
}

footer {
  bottom: 0;
  background-color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: clamp(20px, 3vw, 30px);
  flex-wrap: wrap;
  gap: 20px;

  .copyright {
    color: var(--bg-color);
    margin: 0;
    font-size: clamp(14px, 1.5vw, 16px);
    text-align: center;
    flex: 1 1 100%;
    order: 3;
  }

  .terms {
    flex: 1 1 auto;
    text-align: center;
    order: 1;

    a {
      text-decoration: none;
      color: var(--bg-color);
      font-size: clamp(14px, 1.5vw, 16px);
      padding: 5px 10px;
      display: inline-block;
    }

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

  .social-links {
    margin: 0;
    display: flex;
    justify-content: center;
    gap: clamp(15px, 2vw, 30px);
    flex: 1 1 auto;
    order: 2;

    a {
      text-decoration: none;
      color: var(--bg-color);
      font-size: clamp(14px, 1.5vw, 16px);
      padding: 5px 10px;
    }

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

@media (min-width: 768px) {
  footer {
    flex-wrap: nowrap;
    padding: 0 clamp(20px, 3vw, 60px);

    .copyright {
      flex: 0 1 auto;
      order: 1;
      text-align: left;
    }

    .terms {
      order: 2;
    }

    .social-links {
      order: 3;
      justify-content: flex-end;
    }
  }
}

.download {
  margin-right: 60px;
  border-radius: 20px;
  padding: 10px 20px;
  border: none;
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.download:hover {
  color: var(--primary-color);
  background-color: var(--accent-color);
}

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero .hero-content {
    margin-left: 50px;
  }

  .hero .hero-content h1 {
    font-size: 40px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .navbar {
    display: flex;
    height: 60px;
    padding: 0 15px;
  }

  .logo {
    font-size: 24px;
    margin-left: 10px;
  }

  .menu-toggle {
    display: block;
    z-index: 1000;
  }

  .navlinks {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
    border-top-left-radius: 32px;
    border-bottom-left-radius: 32px;
    padding: 40px 28px 28px 28px;
    flex-direction: column;
    align-items: stretch;
    transition: right 0.35s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 1100;
  }

  .navlinks.active {
    display: flex;
    right: 0;
  }

  .navlinks ul {
    flex-direction: column;
    width: 100%;
    margin: 0;
    gap: 0;
    padding: 0;
  }

  .navlinks ul li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #f2f2f2;
    padding: 0;
  }

  .navlinks ul a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 18px 0 18px 12px;
    font-size: 1.15rem;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
  }

  .navlinks ul a:hover {
    background: #f7f7f7;
    color: var(--primary-color);
  }

  .navlinks ul .nav-link.active {
    background: #f7f7f7;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
    border-bottom: 0;
  }

  .navlinks .download {
    margin: 24px 0 0 0;
    width: 100%;
    font-size: 1.1rem;
    padding: 14px 0;
    border-radius: 16px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(208, 156, 0, 0.08);
  }

  /* Overlay for mobile menu */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1090;
  }
  .menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Close button for mobile menu */
  .menu-close-btn {
    display: block;
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1200;
    transition: color 0.2s;
  }
  .menu-close-btn:hover {
    color: #ff9800;
  }

  .hero {
    height: auto;
    padding: 40px 0;
  }

  .hero .hero-content {
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
  }

  .hero .hero-content h1 {
    font-size: 32px;
  }

  .hero .hero-content p {
    font-size: 18px;
  }

  .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .card {
    width: 100%;
    max-width: 300px;
  }

  .bottom-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .bottom-cards .card {
    width: 100%;
    max-width: 300px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: auto;
    padding: 30px 20px;
  }

  footer .copyright,
  footer .social-links {
    margin: 0;
    text-align: center;
  }

  footer .social-links {
    width: 100%;
    justify-content: center;
    gap: 20px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .logo {
    font-size: 20px;
  }

  .hero .hero-content h1 {
    font-size: 28px;
  }

  .hero .hero-content p {
    font-size: 16px;
  }

  .card .card-image {
    width: 80px;
    height: 80px;
  }

  .card h2 {
    font-size: 20px;
  }

  .card p {
    font-size: 14px;
  }
}

/* Make footer social links match home page styling (icon + label on desktop, icon-only on small screens) */
footer .social-links a.social-link {
  text-decoration: none;
  color: var(--bg-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(14px, 1.5vw, 16px);
  padding: 8px 12px;
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
}

footer .social-links a.social-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: inherit;
}

footer .social-links a.social-link .social-label {
  display: inline-block;
}

footer .social-links a.social-link:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  /* On small screens show icons only for compact footer */
  footer .social-links a.social-link .social-label {
    display: none;
  }
}

@media (max-width: 512px){
  .logo{
    margin-left: -5px;
  }
  .logo-text{
    font-size: 1rem;
  }
}