

/*************************************************
 MAIN SECTION
*************************************************/
.project-intro {
  position: relative;
  min-height: calc(100vh - 100px);
  padding: 150px 20px 100px 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg) !important;
  padding-bottom: 60px;
}

/*************************************************
 BACKGROUND SHAPES
*************************************************/
.bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  opacity: 0.08;
  animation: float 18s infinite ease-in-out;
}


.shape-line {
  width: 2px;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--color-primary), transparent);
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--color-primary);
}

.shape-square {
  width: 60px;
  height: 60px;
  border: 2px solid var(--color-primary);
  transform: rotate(45deg);
}

.shape-hex {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}


.shape:nth-child(1) { top: 10%; left: 10%; animation-duration: 22s; }
.shape:nth-child(2) { top: 60%; left: 15%; animation-duration: 18s; }
.shape:nth-child(3) { top: 30%; left: 80%; animation-duration: 20s; }
.shape:nth-child(4) { top: 70%; left: 70%; animation-duration: 24s; }
.shape:nth-child(5) { top: 20%; left: 50%; animation-duration: 26s; }
.shape:nth-child(6) { top: 85%; left: 30%; animation-duration: 19s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(180deg); }
}

/*************************************************
 MAIN CONTAINER
*************************************************/
.project-first-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.p-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  position: relative;
}

/*************************************************
 LEFT — TEXT AREA
*************************************************/

.left-part {
  flex: 1;
  max-width: 620px;
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.9s ease forwards 0.3s;
}

@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}


.heading h1 {
font-size: clamp(2.7rem, 5vw, 4rem);
  line-height: 0.9;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: justify;
}


.create {
  background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
  background-clip : text;
  -webkit-text-fill-color: transparent;
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(228, 54, 54, 0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(228, 54, 54, 0.6)); }
}


.left-part p {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  margin: 25px 0 35px;
  max-width: 550px;
}

/*************************************************
 BUTTON
*************************************************/
#scrollBtn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-primary);
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(228, 54, 54, 0.4);
  position: relative;
}

#scrollBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 45px rgba(228, 54, 54, 0.55);
}

#scrollBtn::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0; height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: 0.7s;
}

#scrollBtn:hover::before {
  width: 300px;
  height: 300px;
}

/*************************************************
 RIGHT — IMAGE AREA
*************************************************/
.right-part {
  flex: 1;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(40px) scale(0.95);
  animation: slideInRight 0.9s ease forwards 0.5s;
}

@keyframes slideInRight {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/*************************************************
 IMAGE WRAPPER + FLOAT
*************************************************/
.image-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  animation: floatImage 6s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/*************************************************
 IMAGE STYLING
*************************************************/
.right-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 2; 
  box-shadow: 0 10px 35px rgba(0,0,0,0.45), 0 0 20px var(--color-primary);
}

/*************************************************
 DECORATIVE RINGS (Centered behind image)
*************************************************/
.deco-ring {
  position: absolute;
  border: 2px solid var(--color-primary);
  opacity: 0.5;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: 1; 
}

.ring-1 { width: 110%; height: 110%; }
.ring-2 { width: 140%; height: 140%; animation-delay: 1s; }
.ring-3 { width: 170%; height: 170%; animation-delay: 2s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.07); opacity: 1; }
}
/*************************************************
 RESPONSIVE
*************************************************/
@media (max-width: 1100px) {
  .p-container { gap: 50px; }
  .ring-2, .ring-3 { display: none; } 
}

@media (max-width: 968px) {
  .p-container {
    flex-direction: column;
    text-align: center;
  }

  .left-part p {
    margin: 20px auto;
  }

  .right-part {
    max-width: 350px;
  }

  .ring-1 {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 600px) {
  .project-first-container { padding: 0 20px; }

  .heading h1 {
    font-size: 2.1rem;
  }
}

.project-container {
    padding: 60px 0;
    width: 100%;
    background: var(--color-bg);
}


.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--color-bg-soft);
    color: var(--color-text);
    transition: var(--animation-smooth);
    box-shadow: var(--box-shadow);
}

.filter-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.filter-btn.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
}


.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 400px)); 
    justify-content: center; 
    gap: 30px;
    padding: 0 30px;
}


.project-card {
    background: var(--color-bg-alt);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    max-width: 400px;
    width: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px var(--glow-primary);
}


.card-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.card-content {
    padding: 18px 22px;
}

.card-content h3 {
    color: var(--color-text);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p,
 .card-content p a{
    color: var(--color-text);
}


.tags {
    margin-bottom: 10px;
}


.tag {
    background: var(--color-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
}


.view-details {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 6px;
    transition: var(--animation-smooth);
    text-decoration: none;
}


.view-details:hover {
    opacity: 0.85;
    color: #fff; 
}


.no-projects-msg {
    grid-column: 1 / -1;
    padding: 50px;
    text-align: center;
    background: var(--color-bg-alt);
    border-radius: 10px;
    color: red;
    font-size: 1.1rem;
    display: none;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 99999;
    overflow-y: auto;
}


.modal-content {
    background: var(--color-bg-alt);
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: var(--shadow-strong);
    position: relative;
    animation: fadeIn 0.3s ease;
    max-height: 90vh; 
    overflow-y: auto; 
}


.modal .close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-text);
    transition: 0.2s;
}

.modal .close:hover {
    color: var(--color-primary);
}


.modal-content img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}


.modal-body {
    color: var(--color-text);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.project-info {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.key-features ul {
    margin-top: 10px;
    padding-left: 20px;
}

.key-features li {
    margin-bottom: 6px;
    color: var(--color-text);
}


@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
