/*
Theme Name: Astra Child
Theme URI: https://example.com
Description: Child theme for Astra
Author: Your Name
Template: astra
Version: 1.0
*/

/* Your custom CSS below */

html {
  overflow-y: scroll;
}
.portfolio-page {
  padding: 60px 0;
}

.page-title {
  font-size: 28px;
  margin-bottom: 30px;
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* Card */
.portfolio-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Image */
.portfolio-img img {
  width: 100%;
  display: block;
}

/* Content */
.portfolio-content {
  padding: 15px;
}

.portfolio-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.meta {
  font-size: 13px;
  color: #0073ff;
  margin-bottom: 10px;
}

.project-link {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  word-break: break-all;
}
.filters {
  /*text-align: center;*/
  margin-bottom: 30px;
}

.filters button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background: darkgrey;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.filters button.active,
.filters button:hover {
  background: #22c44a;
  color: #fff;
}

.wpcf7 input.wpcf7-form-control:not([type=submit]):focus, .wpcf7 select.wpcf7-form-control:focus, .wpcf7 textarea.wpcf7-form-control:focus {
  border-color: #22c44a;
}


/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Items */
.item img {
  width: 100%;
  transition: 0.3s;
}


.item {
  position: relative;
}


.item {
  position: relative;
  overflow: hidden;
}

.item img {
  width: 100%;
  display: block;
  transition: 0.4s;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;

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

  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s;
}

.item::after {
  pointer-events: none; /* 👈 important */
}
.overlay {
  pointer-events: none;
}
.overlay h4 {
    color: limegreen;
}

/* Hover */
.item:hover img {
  transform: scale(1.1);
}

.item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
}


.filters button.active {
  background: #22c44a;
  color: #fff;
  font-weight: 600;
}

.portfolio-grid {
  gap: 30px;
}

.item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}


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

body {
  font-family: 'Montserrat', sans-serif;
  background: #f8f9fc;
  color: #333;
}

/* CONTAINER */
.container {
  /*max-width: 1000px;*/
  /*min-width: 100%;*/
  /*margin: auto;*/
  /*padding: 0 20px;*/
}

/* HERO */
.hero {
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #666;
  /*max-width: 700px;*/
  margin: auto;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 25px;
  /*background: #0073ff;*/
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #005ed6;
}

/* SECTION */
.section {
  padding: 40px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

/* SERVICES */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-box {
  background: rgb(222 97 68 / 8%);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
}

.service-box i {
  font-size: 30px;
  color: #0073ff;
  margin-bottom: 15px;
}

.service-box h3 {
  margin-bottom: 10px;
}

.service-box:hover {
  transform: translateY(-5px);
}

/* PORTFOLIO */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


.item img {
  aspect-ratio: 50/50;
  object-fit: cover;
}


.item:nth-child(3n+1) {
  border: 1px solid #4285F4;
}

.item:nth-child(3n+2) {
  border: 1px solid #EA4335;
}

.item:nth-child(3n+3) {
  border: 1px solid #FBBC05;
}


.item:nth-child(3n+4) {
  border: 1px solid #FBBC05;
}

.item:nth-child(3n+5) {
  border: 1px solid #4285F4;
}

.item:nth-child(3n+6) {
  border: 1px solid #EA4335;
}


.item:nth-child(3n+7) {
  border: 1px solid #4285F4;
}

.item:nth-child(3n+8) {
  border: 1px solid #EA4335;
}

.item:nth-child(3n+9) {
  border: 1px solid #FBBC05;
}


.item:nth-child(3n+10) {
  border: 1px solid #FBBC05;
}

.item:nth-child(3n+11) {
  border: 1px solid #4285F4;
}

.item:nth-child(3n+12) {
  border: 1px solid #EA4335;
}

.item:nth-child(3n+13) {
  border: 1px solid #4285F4;
}

.item:nth-child(3n+14) {
  border: 1px solid #EA4335;
}

.item:nth-child(3n+15) {
  border: 1px solid #FBBC05;
}


.item:nth-child(3n+16) {
  border: 1px solid #FBBC05;
}

.item:nth-child(3n+17) {
  border: 1px solid #4285F4;
}

.item:nth-child(3n+18) {
  border: 1px solid #EA4335;
}


.item:nth-child(3n+19) {
  border: 1px solid #4285F4;
}

.item:nth-child(3n+20) {
  border: 1px solid #EA4335;
}

.item:nth-child(3n+21) {
  border: 1px solid #FBBC05;
}


.item:nth-child(3n+22) {
  border: 1px solid #FBBC05;
}

.item:nth-child(3n+23) {
  border: 1px solid #4285F4;
}

.item:nth-child(3n+24) {
  border: 1px solid #EA4335;
}




.item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.item img {
  width: 100%;
  display: block;
  transition: 0.4s;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;

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

  opacity: 0;
  transition: 0.4s;
}

.item:hover img {
  transform: scale(1.1);
}

.item:hover .overlay {
  opacity: 1;
}

/* WHY */
.why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.why-item {
  background: aliceblue;
  padding: 20px;
  border-radius: 8px;
}

/* CONTACT */
.contact {
  text-align: center;
}

.contact p {
  max-width: 600px;
  margin: auto;
  color: #666;
}

.form {
  margin-top: 30px;
}

.form input, .form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.form button {
  padding: 12px 30px;
  border: none;
  /*background: #0073ff;*/
  color: #fff;
  border-radius: 5px;
}


/* Contact Form 7 Styling */
.wpcf7 {
  max-width: 600px;
  margin: 30px auto;
}

.wpcf7 label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: 'Montserrat', sans-serif;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #0073ff;
  outline: none;
}

/* Button */
.wpcf7 input[type="submit"] {
  /*background: #0073ff;*/
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.wpcf7 input[type="submit"]:hover {
  /*background: #005ed6;*/
}

/* Success Message */
.wpcf7-response-output {
  margin-top: 10px;
  border-radius: 5px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row p {
  flex: 1;
}


.ast-plain-container, .ast-page-builder-template {
    background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .services, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services, .portfolio-grid {
    grid-template-columns: 1fr;
  }
}


/*Single Portfolio*/


.development-portfolio-single .dp-hero {
    padding: 60px 0;
    text-align: center;
    background: #f8f9fb;
}

.dp-featured-image img {
    border-radius: 16px;
    margin-bottom: 20px;
}

.dp-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.dp-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
}

.dp-content {
    padding: 60px 0;
}

.dp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.dp-block {
    margin-bottom: 40px;
}

.dp-block h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.dp-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.dp-card h3 {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .dp-grid {
        grid-template-columns: 1fr;
    }
}
/*body {
  user-select: none;
}

input, textarea {
  user-select: auto;
}

img {
  pointer-events: none;
}

img {
  position: relative;
}

img::after {
  content: "";
  position: absolute;
  inset: 0;
}

@media print {
  body {
    display: none;
  }
}

body::before {
  content: "© gulshan.contact@gmail.com";
  position: fixed;
  bottom: 10px;
  right: 10px;
  opacity: 0.2;
  font-size: 20px;
  pointer-events: none;
}*/