/* Extracted Featured Projects CSS */

/* ===========================
   FEATURED PROJECTS CSS
=========================== */

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

:root{
  --bg:#f5f2eb;
  --green-dark:#1e3d2f;
  --green-mid:#2e5c42;
  --green-accent:#94BB72;
  --white:#ffffff;
  --radius:22px;
}

body{
  background:var(--bg);
  font-family:'DM Sans',sans-serif;
  overflow-x:hidden;
}

/* ===========================
   SECTION
=========================== */

.featured{
  width:100%;
  padding:80px 3%;
}

.section-label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.22em;
  color:var(--green-mid);
  margin-bottom:12px;
  font-weight:600;
  text-align: center;
}

.section-title{
  font-family:'Playfair Display',serif;
  font-size:clamp(42px,6vw,85px);
  color:var(--green-dark);
  line-height:1.05;
  margin-bottom:60px;
  text-align: center;
}

.section-header{
  text-align: center;
}

/* ===========================
   GRID
=========================== */

.projects-grid{
  display:grid;

  /* 1 row madhe 4 cards */
  grid-template-columns:repeat(4, 1fr);

  gap:28px;
}

/* ===========================
   CARD
=========================== */

.project-card{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius:24px;
  overflow:hidden;
  cursor:pointer;
  background:#16241d;
  box-shadow:
  0 10px 35px rgba(0,0,0,0.08),
  0 8px 22px rgba(30,61,47,0.10);
  transition:
  transform 0.6s cubic-bezier(0.23,1,0.32,1),
  box-shadow 0.6s ease;
  opacity:0;
  transform:translateY(60px);
  animation:cardAnimation 0.9s forwards;
}

/* ===========================
   CARD ANIMATION
=========================== */

.project-card:nth-child(1){animation-delay:0.1s;}
.project-card:nth-child(2){animation-delay:0.2s;}
.project-card:nth-child(3){animation-delay:0.3s;}
.project-card:nth-child(4){animation-delay:0.4s;}
.project-card:nth-child(5){animation-delay:0.5s;}
.project-card:nth-child(6){animation-delay:0.6s;}
.project-card:nth-child(7){animation-delay:0.7s;}
.project-card:nth-child(8){animation-delay:0.8s;}
.project-card:nth-child(9){animation-delay:0.9s;}
.project-card:nth-child(10){animation-delay:1s;}
.project-card:nth-child(11){animation-delay:1.1s;}
.project-card:nth-child(12){animation-delay:1.2s;}
.project-card:nth-child(13){animation-delay:1.3s;}
.project-card:nth-child(14){animation-delay:1.4s;}
.project-card:nth-child(15){animation-delay:1.5s;}
.project-card:nth-child(16){animation-delay:1.6s;}
.project-card:nth-child(17){animation-delay:1.7s;}
.project-card:nth-child(18){animation-delay:1.8s;}
.project-card:nth-child(19){animation-delay:1.9s;}

@keyframes cardAnimation{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ===========================
   CARD IMAGE
=========================== */

.card-img{
  width:100%;
  height:100%;
  object-fit:cover;

  transition:
  transform 1s ease,
  filter 0.8s ease;
}

.project-card:hover .card-img{
  transform:scale(1.12);
  filter:brightness(0.42);
}

/* ===========================
   OVERLAY
=========================== */

.card-overlay{
  position:absolute;
  inset:0;

  background:
  linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.32) 45%,
    rgba(0,0,0,0.06) 100%
  );

  transition:0.5s ease;
}

/* ===========================
   STATIC TITLE
=========================== */

.card-name-static{
  position:absolute;
  left:24px;
  bottom:24px;

  color:#fff;

  font-family:'Playfair Display',serif;
  font-size:28px;
  font-weight:700;

  z-index:3;

  transition:0.4s ease;

  text-shadow:
  0 4px 20px rgba(0,0,0,0.45);
}

.project-card:hover .card-name-static{
  opacity:0;
  transform:translateY(14px);
}

/* ===========================
   CONTENT
=========================== */

.card-content{
  position:absolute;
  left:0;
  right:0;
  bottom:0;

  padding:24px;

  z-index:4;

  transform:translateY(24px);

  transition:0.6s cubic-bezier(0.23,1,0.32,1);
}

.project-card:hover .card-content{
  transform:translateY(0);
}

/* ===========================
   CATEGORY
=========================== */

.card-category{
  display:block;

  font-size:10px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  font-weight:600;

  color:var(--green-accent);

  margin-bottom:10px;

  opacity:0;
  transform:translateY(16px);

  transition:0.45s ease;
}

/* ===========================
   TITLE
=========================== */

.card-name{
  font-family:'Playfair Display',serif;
  font-size:30px;
  color:#fff;
  line-height:1.1;
  margin-bottom:12px;

  opacity:0;
  transform:translateY(16px);

  transition:0.5s ease;
}

/* ===========================
   DESCRIPTION
=========================== */

.card-desc{
  color:rgba(255,255,255,0.78);

  font-size:13px;
  line-height:1.7;
  font-weight:300;

  margin-bottom:18px;

  opacity:0;
  transform:translateY(16px);

  transition:0.55s ease;
}

/* ===========================
   BUTTON
=========================== */

.view-details{
  display:inline-flex;
  align-items:center;
  gap:12px;

  color:#fff;
  text-decoration:none;

  font-size:13px;
  font-weight:600;

  opacity:0;
  transform:translateY(16px);

  transition:0.6s ease;
}

.view-details:hover{
  gap:18px;
}

/* ===========================
   PLUS ICON
=========================== */

.plus-circle{
  width:34px;
  height:34px;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  background:var(--green-accent);

  transition:0.4s ease;
}

.plus-circle svg{
  width:14px;
  height:14px;

  stroke:#fff;
  stroke-width:2.5;
}

.view-details:hover .plus-circle{
  transform:rotate(45deg) scale(1.1);

  box-shadow:
  0 0 0 8px rgba(148,187,114,0.15);
}

/* ===========================
   HOVER CONTENT SHOW
=========================== */

.project-card:hover .card-category,
.project-card:hover .card-name,
.project-card:hover .card-desc,
.project-card:hover .view-details{
  opacity:1;
  transform:translateY(0);
}

/* ===========================
   HOVER CARD EFFECT
=========================== */

.project-card:hover{
  transform:
  translateY(-12px)
  scale(1.02);

  box-shadow:
  0 30px 70px rgba(30,61,47,0.22),
  0 0 0 1px rgba(148,187,114,0.15);
}

/* ===========================
   RESPONSIVE
=========================== */

/* Laptop */
@media(max-width:1400px){

  .projects-grid{
    grid-template-columns:repeat(4,1fr);
    gap:22px;
  }

}

/* Tablet */
@media(max-width:1100px){

  .projects-grid{
    grid-template-columns:repeat(2,1fr);
  }

}

/* Mobile */
@media(max-width:700px){

  .featured{
    padding:60px 5%;
  }

  .projects-grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .section-title{
    font-size:44px;
  }

  .card-name-static{
    font-size:24px;
  }

  .card-name{
    font-size:26px;
  }

}

/* =======================
    featured-projects
======================= */

.view-all-projects-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #1b4b36;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: inherit;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}
.view-all-projects-btn:hover {
    background-color: #123425;
    color: white;
}

/* Copied from index.css for premium button */
.premium-portfolio-redirect-btn {
  display: flex;
  align-items: center;
  background-color: #00574d; 
  padding: 16px 34px;
  border-radius: 50px;
  text-decoration: none;
  gap: 16px;
  border: 1px solid rgba(26, 164, 151, 0.2);
  transition:
    background-color 0.4s ease,
    transform 0.4s cubic-bezier(0.25, 1, 0.2, 1),
    box-shadow 0.4s ease;
}

.premium-portfolio-redirect-btn .btn-text {
  font-family: sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.premium-portfolio-redirect-btn .btn-arrow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px; height: 32px;
  background-color: #1aa497; 
  color: #00574d;
  border-radius: 50%;
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.2, 1),
    background-color 0.4s ease,
    color 0.4s ease;
}

.premium-portfolio-redirect-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 87, 77, 0.15);
  background-color: #00574d;
  border-color: rgba(26, 164, 151, 0.5);
}

.premium-portfolio-redirect-btn:hover .btn-arrow-wrapper {
  transform: scale(1.1) translateX(4px);
  background-color: #ffffff;
  color: #00574d;
}

