/* Reset default styles */
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Caveat:wght@400;700&family=Lobster&family=Monoton&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+Pro:ital,wght@0,400;0,700;1,700&family=Work+Sans:ital,wght@0,400;0,700;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Caveat:wght@400;700&family=Lobster&family=Monoton&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+Pro:ital,wght@0,400;0,700;1,700&family=Work+Sans:ital,wght@0,400;0,700;1,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Manrope:700|Manrope:400');
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Caveat:wght@400;700&family=Lobster&family=Monoton&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+Pro:ital,wght@0,400;0,700;1,700&family=Work+Sans:ital,wght@0,400;0,700;1,700&display=swap');



/* Global styles */
body {
    font-family: 'Nunito', sans-serif !important;
    line-height: 1.8;
    background: #000000 !important;
    line-height: 1.8;
    color: #ffffff;
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tdm-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .tdm-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px 0;
  }
  
  @media (min-width: 768px) {
    .tdm-card-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .tdm-card {
    position: relative;
    border-radius: 12px;
    background: linear-gradient(145deg, #0f0f0f, #080808);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
  }
  
  .tdm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(127, 81, 255, 0.2);
  }
  
  .tdm-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7f51ffc7, transparent, #7f51ffc7);
    z-index: -1;
    border-radius: 14px;
    animation: borderGlow 8s linear infinite;
    background-size: 400%;
  }
  
  @keyframes borderGlow {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
  }
  
  .tdm-card-inner {
    position: relative;
    z-index: 2;
  }
  
  /* Image container styles */
  .tdm-card-image {
    height: 230px; /* Increased height */
    position: relative;
    overflow: hidden;
  }
  
  .tdm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .tdm-card:hover .tdm-card-image img {
    transform: scale(1.05);
  }
  
  /* Futuristic line overlays on image */
  .tdm-card-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      linear-gradient(90deg, transparent 50%, rgba(127, 81, 255, 0.1) 50%),
      linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-size: 10px 100%, 100% 100%;
    z-index: 1;
    opacity: 0.7;
  }
  
  /* Diagonal overlay */
  .tdm-card-image::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200%;
    height: 100px;
    background: #080808;
    transform: rotate(-5deg);
    z-index: 2;
  }
  
  .tdm-card-content {
    padding: 25px 30px 30px;
    position: relative;
  }
  
  /* Tech circuit pattern overlay */
  .tdm-circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 50px 50px, rgba(127, 81, 255, 0.03) 0, rgba(127, 81, 255, 0.03) 1px, transparent 1px),
      linear-gradient(to right, rgba(127, 81, 255, 0.03) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(127, 81, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 20px 20px;
    z-index: -1;
    opacity: 0.8;
  }
  
  .tdm-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    text-shadow: 0 0 20px rgba(127, 81, 255, 0.5);
  }
  
  .tdm-card-title::before {
    content: "";
    display: block;
    width: 4px;
    height: 28px;
    background: linear-gradient(to bottom, #7f51ff, transparent);
    margin-right: 15px;
    border-radius: 2px;
  }
  
  .tdm-card-subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-bottom: 15px;
  }
  
  .tdm-card-subtitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, #7f51ffc7, transparent);
  }
  
  .tdm-feature-list {
    list-style-type: none;
    margin-bottom: 25px;
    position: relative;
  }
  
  .tdm-feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
  }
  
  /* Updated futuristic bullet point */
  .tdm-feature-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 0;
    color: #7f51ff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(127, 81, 255, 0.5);
  }
  
  .tdm-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(127, 81, 255, 0.1);
    position: relative;
  }
  
  .tdm-card-tag {
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(127, 81, 255, 0.15), transparent);
    border-left: 2px solid #7f51ff;
    color: #7f51ff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
  }
  
  .tdm-card-tag::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background: rgba(127, 81, 255, 0.3);
    filter: blur(5px);
    animation: tagGlow 3s infinite;
  }
  
  @keyframes tagGlow {
    0% { left: -20px; }
    100% { left: 100%; }
  }
  
  .tdm-learn-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(127, 81, 255, 0.1);
    color: #7f51ff;
    border: 1px solid rgba(127, 81, 255, 0.3);
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .tdm-learn-more::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 81, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
  }
  
  .tdm-learn-more:hover {
    background-color: rgba(127, 81, 255, 0.2);
    box-shadow: 0 5px 15px rgba(127, 81, 255, 0.2);
  }
  
  .tdm-learn-more:hover::before {
    left: 100%;
  }
  
  /* Card bottom accent */
  .tdm-card-accent {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .tdm-card-accent::before,
  .tdm-card-accent::after {
    content: "";
    position: absolute;
    background: rgba(127, 81, 255, 0.15);
  }
  
  .tdm-card-accent::before {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
  }
  
  .tdm-card-accent::after {
    bottom: 0;
    right: 0;
    width: 2px;
    height: 100%;
  }
  
  /* Model number badge */
  .tdm-model-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #7f51ff;
    z-index: 5;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(127, 81, 255, 0.3);
  }