
    * { margin:0; padding:0; box-sizing:border-box; }
    body { font-family:'Inter', sans-serif; line-height:1.6; color:#111; background:#fdfdfd; }
    a { text-decoration:none; color:inherit; }

    
    html {
  scroll-behavior: smooth;
}


    /* Section backgrounds */
    section { position:relative; overflow:hidden; padding:70px 20px; }
    section::after {
      content:""; position:absolute; width:500px; height:500px;
      top:-150px; border-radius:50%;
      background:rgba(35,122,97,0.05); animation:float 8s infinite alternate;
      z-index:0;
    }
    section:nth-of-type(odd)::after { left:-200px; }
    section:nth-of-type(even)::after { right:-200px; }
    @keyframes float { from{ transform:scale(1);} to{ transform:scale(1.2);} }
    section > * { position:relative; z-index:1; }

    header { 
      text-align:center; padding:120px 20px 80px; 
      background: linear-gradient(135deg, #237a61, #3ca183); color:#fff; 
      position:relative; overflow:hidden;
    }
    header::after {
      content:""; position:absolute; width:600px; height:600px; 
      background:rgba(255,255,255,0.07); top:-200px; left:-200px;
      border-radius:50%; animation:pulse 8s infinite alternate ease-in-out;
    }
    @keyframes pulse { from{ transform:scale(1);} to{ transform:scale(1.2);} }
    header h1 { font-size:2.8rem; font-weight:600; margin-bottom:15px; }
    header p { font-size:1.1rem; max-width:600px; margin:auto; margin-bottom:25px; color:#f1f1f1; }
    .btn { display:inline-block; padding:12px 24px; background:#fff; color:#237a61; border-radius:25px; font-weight:600; transition:.3s; }
    .btn:hover { background:#eee; }

    section h2 { font-size:2rem; margin-bottom:25px; font-weight:600; text-align:center; color:#237a61; }
    header {
  position: relative;
  overflow: hidden;
  z-index: 1; /* header content above overlay */
}

header {
  height: auto;              /* let content define height */
  padding: 3rem 1rem;        /* reduce padding (was probably larger) */
  text-align: center;
  background: #237a61;       /* optional background if you want */
}

header h1 {
  font-size: 2.2rem;         /* shrink heading */
  margin-bottom: 1rem;
}

header p {
  font-size: 1.1rem;         /* smaller paragraph */
  max-width: 700px;          /* keep it narrow for readability */
  margin: 0 auto 1.5rem;
}

header .btn {
  padding: 0.6rem 1.2rem;    /* smaller button */
  font-size: 1rem;
}

/* Reduce hero section size */
.hero {
  height: 40vh; /* instead of 100vh */
  padding: 4rem 1rem; /* adjust spacing */
  display: flex;
  align-items: center; /* keep content vertically centered */
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem; /* shrink heading */
}

.hero p {
  font-size: 1.2rem; /* shrink text */
  margin-bottom: 1rem;
}


header::after {
  content:"";
  position:absolute;
  width:600px;
  height:600px;
  background:rgba(255,255,255,0.07);
  top:-200px;
  left:-200px;
  border-radius:50%;
  animation:pulse 8s infinite alternate ease-in-out;
  z-index: 0; /* <<< push overlay behind */
}

#about h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 2rem;
}

#about .about-text p {
  font-family: 'Baloo 2', cursive;
  font-size: 1.1rem;
  line-height: 1.4;
}


.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;   /* keeps text aligned */
  justify-content: flex-start;
  max-width: 900px;
  margin: auto;
  gap: 30px;
  position: relative;
}

/* Portrait image container */
.about-image {
  flex: 0 0 400px;   /* reserves space for the image in flexbox */
  position: relative;
}

/* Image itself */
.about-image img {
  width: 450px;       
  height: 450px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 6px solid #fff;

  /* Positioning tweaks */
  position: absolute;   /* lets it bleed upward */
  top: -250px;          
  left: -180px;         
  z-index: 3;        

  transition: transform 0.4s ease;
}

.about-image img:hover {
  transform: scale(1.10) rotate(-2deg);
}

/* Text beside image */
.about-text {
  flex: 1 1 400px;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #333;
}

/* Mobile */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    flex: 0 0 auto;   /* don’t force width on mobile */
  }

  .about-image img {
    width: 270px;
    height: 270px;
    top: -25px;  
    left: 0;
    position: relative; /* reset so it stacks nicely on small screens */
  }

  .about-text {
    padding-top: 20px;
  }
}
/* ===== Proficiency Section ===== */
#proficiency {
  padding: 80px 20px;
  background: #f9f9f9;
}

.proficiency-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.proficiency-container h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  list-style: none;
}

.skills-list li {
  background: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Hover effects */
.skills-list li:hover {
  transform: translateY(-5px);
  background: #237a61;
  color: #fff;
}

.skills-list li:hover i {
  color: #fff;
}

.skills-list i {
  font-size: 1.3rem;
  color: #237a61;
  transition: color 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .skills-list li {
    flex: 1 1 40%;
    margin: 5px;
  }
}

/* Accordion smooth dropdown */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 20px;
}
.accordion.open .accordion-content {
  max-height: 1000px; /* big enough for any content */
  padding: 20px;
}
.accordion-header {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #237a61;
  transition: background 0.3s;
}
.accordion-header:hover {
  background: #f0f9f5;
}

/* Make screenshots fully visible */
.cards .card img {
  width: 100%;
  height: auto; /* keep aspect ratio */
  object-fit: contain;
  border-radius: 8px;
}

/* Button group for web projects */
.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-group button,
.btn-group .visit-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #237a61;
  color: white;
  transition: background 0.3s;
  text-decoration: none;
}

.btn-group button:hover,
.btn-group .visit-btn:hover {
  background: #237a61;
}

/* Link to all design projects */
.all-designs-link {
  text-align: center;
  margin-top: 20px;
}

.all-designs-link a {
  display: inline-block;
  padding: 10px 20px;
  background: #237a61;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.all-designs-link a:hover {
  background: #237a61;
}






    /* Accordion Dropdown */
    .accordion { border-radius:12px; overflow:hidden; box-shadow:0 4px 12px rgba(0,0,0,0.05); background:#fff; margin-bottom:30px; }
    .accordion-header { padding:18px 20px; cursor:pointer; font-weight:600; display:flex; justify-content:space-between; align-items:center; color:#237a61; }
    .accordion-header:hover { background:#f0f9f5; }
    .accordion-header i { transition:transform .3s; }
    .accordion-content { max-height:0; overflow:hidden; transition:max-height .4s ease; padding:0 20px; background:#fafafa; }
    .accordion.open .accordion-content { max-height:1000px; padding:20px; }
    .accordion.open .accordion-header i { transform:rotate(180deg); }

    /* Cards */
    .cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
    .card { background:#fff; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,0.08); overflow:hidden; transition:.3s; }
    .card:hover { transform:translateY(-5px); }
    .card img { width:100%; height:180px; object-fit:cover; }
    .card-body { padding:15px; }
    .card-body h3 { font-size:1.2rem; margin-bottom:10px; color:#237a61; }
    .card-body p { font-size:0.95rem; color:#555; margin-bottom:15px; }
    .card-body button { padding:8px 16px; border:none; border-radius:20px; background:#237a61; color:#fff; cursor:pointer; font-weight:500; transition:.3s; }
    .card-body button:hover { background:#195c47; }

    /* Modal */
    .modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); justify-content:center; align-items:center; padding:20px; z-index:1000; }
    .modal-content { background:#fff; border-radius:12px; max-width:600px; padding:25px; text-align:left; position:relative; }
    .modal-content h3 { margin-bottom:15px; color:#237a61; }
    .modal-content p { color:#444; }
    .close { position:absolute; top:15px; right:20px; font-size:1.4rem; cursor:pointer; color:#333; }

    /* Testimonials */
    .testimonials { background:linear-gradient(135deg,#f4fdf9,#eaf9f4); text-align:center; }
    .testimonial-slider { display:flex; transition:transform .6s ease; }
    .testimonial-container { overflow:hidden; max-width:700px; margin:auto; }
    .testimonial { min-width:100%; padding:20px; }
    .testimonial p { font-size:1.1rem; color:#333; margin-bottom:15px; }
    .testimonial h4 { color:#237a61; font-weight:600; }
    .controls { margin-top:20px; }
    .controls button { border:none; background:#237a61; color:#fff; padding:10px 15px; border-radius:50%; margin:0 5px; cursor:pointer; }
    .controls button:hover { background:#195c47; }

    /* Contact */
    .contact { text-align:center; background:#fdfdfd; }
    .contact a { display:inline-flex; align-items:center; gap:8px; margin:10px; padding:10px 20px; border:1px solid #237a61; border-radius:25px; font-weight:500; transition:.3s; color:#237a61; }
    .contact a:hover { background:#237a61; color:#fff; }

    footer { text-align:center; font-size:.9rem; color:#555; padding:25px; background:#fafafa; }




    /* === Portfolio / Work Section === */
#work {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}

#work h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

#work h2::after {
  content: "";
  width: 60%;
  height: 3px;
  background: #237a61; /* your theme color */
  display: block;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Filter Buttons */
.filters {
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 2px solid #237a61;
  color: #237a61;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #237a61;
  color: #fff;
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card:hover img {
  transform: scale(1.05);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #work {
    padding: 60px 15px;
  }

  #work h2 {
    font-size: 2rem;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
/* smooth hide/show for gallery cards */
.card {
  transition: transform .30s ease, opacity .30s ease;
  will-change: transform, opacity;
}

/* animated state while hiding */
.card.is-hidden {
  opacity: 0;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
}

.back-button {
  text-align: center;
  margin: 2rem 0;
}

.back-button .btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #237a61;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.back-button .btn:hover {
  background: #237a61;
}
