html{
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f172a;
  color: #e5e7eb;
  overflow-x: hidden;
}

/* HEADER */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 50px;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  position: absolute;
  left: 50px;
  color: white;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #cbd5f5;
  transition: 0.3s;
}

nav a:hover{
  color:#38bdf8;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url(bk4.jpg);
  color:#020617;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  padding: 120px 20px 60px;
}

.content{
  max-width: 600px;
  margin-left: 100px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 1000;
  background: linear-gradient(to right, #ffffff, #13a168);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p{
  margin-top: 15px;
  color: #ffffff;
  line-height: 1.6;
}

.btn {
  margin-top: 25px;
  padding: 14px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg,#38bdf8,#22c55e);
  color: white;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(56,189,248,0.4);
}

.services,
.pricing,
.projects,
.contact-wrap {
  padding: 80px 20px;
  text-align: center;
}

.services h2,
.pricing h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.service-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card {
  max-width: 300px;
  padding: 25px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.small-desc {
  color: #94a3b8;
}

.projects{
  min-height: 100vh;
}

.projects-container{
 
  display: flex;
  gap : 100px; 
  justify-content: center;
}

/* From Uiverse.io by alexmaracinaru */ 
.project-card {
  width: 300px;
  background: white;
  padding: .4em;
  border-radius: 6px;
}

.project-image {
  background-image: url('p1.png'); /* Added quotes */
  background-size: cover; /* Added: Makes image fill the area */
  background-position: center; /* Added: Centers the image */
  width: 100%; /* Changed: Was 290px, now matches parent width */
  height: 130px;
  border-radius: 6px 6px 0 0;
}

/* If you want different images for each project card: */
.project-card:nth-child(1) .project-image {
  background-image: url('p1.png');
}

.project-card:nth-child(2) .project-image {
  background-image: url('p2.png');
}

.project-card:nth-child(3) .project-image {
  background-image: url('p3.png');
}

.project-card:nth-child(4) .project-image {
  background-image: url('p4.png');
}

.project-image:hover {
  transform: scale(0.98);
}

.category {
  text-transform: uppercase;
  font-size: 0.7em;
  font-weight: 600;
  color: rgb(63, 121, 230);
  padding: 10px 7px 0;
}

.category:hover {
  cursor: pointer;
}

.heading {
  font-weight: 600;
  color: rgb(0, 0, 0);
  padding: 7px;
}

.heading:hover {
  cursor: pointer;
}

.author {
  color: rgb(36, 19, 117);
  font-weight: 400;
  font-size: 11px;
  padding-top: 20px;
}

.name {
  font-weight: 600;
}

.name:hover {
  cursor: pointer;
}

.description{
  color:#38bdf8
}


.container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.card_box1,
.card_box2,
.card_box3 {
  width: 100%;
  max-width: 320px;
  padding: 40px 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
  position: relative;
}

.card_box1:hover{
  transform: translateY(-10px) scale(1.02);
  border: 1px solid green;
}

.card_box1 h2{
  color:#22c55e;
}

.card_box2:hover{
  transform: translateY(-10px) scale(1.02);
  border: 1px solid blue;
}

.card_box2 h2{
  color:blue;
}

.card_box3:hover {
  transform: translateY(-10px) scale(1.02);
  border: 1px solid purple;
}

.card_box3 h2{
  color: purple;
}

.card_box1 h3,
.card_box2 h3,
.card_box3 h3 {
  font-size: 26px;
  margin-bottom: 15px;
}

.card_box1 ul,
.card_box2 ul,
.card_box3 ul {
  color: #cbd5f5;
  line-height: 1.8;
}

.card_box3 h2{
  color: linear-gradient(to right, #9e37dd, #7f009b);
}

.add-ons {
  padding: 80px 20px;
  text-align: center;
}

.add-ons h1 {
  font-size: 40px;
  margin-bottom: 30px;
}

.addOns {
  display: flex;
  justify-content: center;
}

.addOns ul {
  list-style: none;
  padding: 30px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 400px;
  width: 100%;
}

.addOns li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #cbd5f5;
  transition: 0.3s;
}

.addOns li:last-child {
  border-bottom: none;
}

.addOns li:hover {
  color: #38bdf8;
  transform: translateX(5px);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
}

.contact-left {
  padding: 40px;
  background: linear-gradient(135deg,#1e293b,#020617);
}

.contact-right {
  padding: 40px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
  margin-bottom: 12px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid #38bdf8;
}

.contact-right button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#38bdf8,#22c55e);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.contact-right button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(56,189,248,0.4);
}

.chat{
  display: flex;
  justify-content: center;
  gap:20px;
}

footer {
  background: #020617;
  color: #94a3b8;
  text-align: center;
  padding: 20px;
}

/* MOBILE */
@media (max-width: 768px) {
  .logo {
    position: static;
    margin-bottom: 10px;
  }

  header {
    flex-direction: column;
    align-items: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  nav a {
    font-size: 13px;
    margin-left: 0;
  }

  .content {
    margin: 0;
    text-align: center;
  }

  .hero {
    justify-content: center;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

/* Default styles (mobile first) */
.projects-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.project-card {
  width: 100%; /* Full width on mobile */
  max-width: 300px;
  background: white;
  padding: .4em;
  border-radius: 6px;
}

.project-image {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 130px;
  border-radius: 6px 6px 0 0;
}

/* Small phones (portrait) */
@media (max-width: 480px) {
  .projects-container {
    gap: 15px;
    padding: 10px;
  }
  
  .project-card {
    max-width: 100%; /* Takes full width */
  }
  
  .heading {
    font-size: 0.85rem;
  }
  
  .description {
    font-size: 0.7rem;
  }
}

/* Tablets (portrait) */
@media (min-width: 481px) and (max-width: 768px) {
  .projects-container {
    gap: 25px;
    padding: 20px;
  }
  
  .project-card {
    width: calc(50% - 25px); /* 2 cards per row */
    max-width: none;
  }
}

/* Small desktops / landscape tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .projects-container {
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .project-card {
    width: calc(33.33% - 30px); /* 3 cards per row */
  }
}

/* Large desktops */
@media (min-width: 1025px) {
  .projects-container {
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .project-card {
    width: calc(25% - 30px); /* 4 cards per row */
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
}