/* Reset and base styles */

:root {
    --primary: #ef4444;
    --secondary: #1A1A1A;
    --text: #666666;
    --light-bg: #F8F8F8;
    --white: #FFFFFF;
    --color-text: #000000;
    --except-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    background: var(--white);
  }
  
  /* Header styles */
  .header {
    position: relative;
    height: 12rem;
    background: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .header-overlay {
    position: absolute;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.5); */
    z-index: 1;
  }
  
  .header-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
  }
  
  .header-content h1 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--light-bg);
  }
  
  .breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
  }
  
  .breadcrumb a:hover {
    color: #fffbfbbb;
  }
  
  .breadcrumb .current {
    color: var(--except-color);
    font-weight: 500;
  }

  .breadcrumb .breadsub {
    font-size: 15px;
    font-weight: 700;
  }
  
  /* Portfolio section styles */
  .portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .line {
    width: 1.5rem;
    height: 1px;
    background: #dc2626;
  }
  
  .title-decoration span {
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
  }
  
  .section-title h2 {
    font-size: 2rem;
    font-weight: bold;
  }
  
  .section-title h2 span {
    color: #dc2626;
  }
  
  /* Portfolio grid */
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
  }
  
  /* Portfolio card */
  .portfolio-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .portfolio-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .card-image {
    position: relative;
    height: 15rem;
    overflow: hidden;
  }
  
  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  
  .portfolio-card:hover .card-image img {
    transform: scale(1.05);
  }
  
  .card-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .card-text .category {
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
  }
  
  .card-text .title {
    color: #111827;
    font-weight: 500;
  }
  
  .card-button {
    width: 7rem;
    /* height: 2rem; */
    padding: .45em;
    background: #dc2626;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
  }
  
  .card-button:hover {
    background: #b91c1c;
  }
  
  .card-button::after {
    content: "→";
    font-size: 1rem;
  }
  
  /* Responsive design */
  @media (min-width: 768px) {
    .portfolio-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title h2 {
      font-size: 2.25rem;
    }
  }
  
  @media (min-width: 1024px) {
    .portfolio-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* Footer styles */
  .footer {
    background-color: #111827;
    color: white;
    padding: 2rem 0 2rem;
  }
  
  
  .footer-bottom {
    /* padding-top: 2rem; */
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
    }
  }

  
   /* Start button scroll Up */

 .back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}




.back-to-top:hover {
  background-color: #ef4444bb;;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
  font-size: 20px;
}

@media (max-width: 768px) {
  .back-to-top {
      width: 40px;
      height: 40px;
      bottom: 20px;
      left: 20px;
  }
  
  .back-to-top i {
      font-size: 16px;
  }
}
