/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1e26;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}

/* spinner */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(51, 51, 51, 0.493);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}



/* nav bar */
/* Smooth transition for navbar links */
@media (max-width: 991.98px) {
  /* Mobile-only styles */
  .navbar-collapse {
    transition: height 0.4s ease;
  }
}




/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px 20px;
    min-height: 60vh;
    justify-content: center;
    align-items: center;
    position: relative;
    /* padding-bottom: 50px; */
}

/* Hero Content */
.hero-content {
    z-index: 1;
}

.greeting {
    font-family: 'Caveat Brush', cursive;
    font-size: 2.2em;
    margin: 0;
}

.name {
    font-size: 3.5em;
    font-weight: bold;
    margin: 10px 0;
}

.title {
    font-size: 2em;
    font-weight: 600;
    margin: 10px 0 30px;
}

/* Buttons */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn1 {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    width: 90%;
    max-width: 250px;
}

.primary-btn {
    background-color: #ff5722;
    color: #fff;
}

.primary-btn:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: #ff5722;
    border: 2px solid #ff5722;
}

.secondary-btn:hover {
    background-color: #ff5722;
    color: white;
    transform: translateY(-2px);
}

/* Hero Image Section */
.hero-image {
    position: relative;
    margin-top: 40px;
     pointer-events: none; /* disables image interaction */
  user-select: none;    /* disables text/image selection */
}

.hero-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.image-circle {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 5px solid #ff5722;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-section {
        flex-direction: row;
        text-align: left;
        padding: 80px;
    }

    .hero-content {
        flex: 1;
        align-items: flex-start;
    }

    .buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .hero-image {
        flex: 1;
        margin-top: 0;
        display: flex;
        justify-content: center;
    }
}

/* Device-Specific Media Queries */

/* iPhone SE (375px) */
@media only screen and (max-width: 375px) {
    .name { font-size: 2.2em; }
    .title { font-size: 1.3em; }
    .hero-image img { width: 160px; height: 160px; }
    .image-circle { width: 170px; height: 170px; }
}

/* iPhone XR / 11 (414px) */
@media only screen and (width: 414px) {
    .name { font-size: 2.4em; }
    .title { font-size: 1.4em; }
    .hero-image img { width: 180px; height: 180px; }
    .image-circle { width: 190px; height: 190px; }
}

/* iPhone 12/14 Pro (390px) */
@media only screen and (width: 390px) {
    .name { font-size: 2.3em; }
    .title { font-size: 1.3em; }
    .hero-image img { width: 175px; height: 175px; }
    .image-circle { width: 185px; height: 185px; }
}

/* iPhone 14 Pro Max (430px) */
@media only screen and (width: 430px) {
    .name { font-size: 2.6em; }
    .title { font-size: 1.5em; }
    .hero-image img { width: 190px; height: 190px; }
    .image-circle { width: 200px; height: 200px; }
}

/* Samsung Galaxy S8+ (412px) */
@media only screen and (width: 412px) {
    .name { font-size: 2.5em; }
    .title { font-size: 1.4em; }
    .hero-image img { width: 185px; height: 185px; }
    .image-circle { width: 195px; height: 195px; }
}

@media only screen and (width: 540px) {
    .name { font-size: 2.5em; }
    .title { font-size: 1.4em; }
    .hero-image img { width: 200px; height: 200px; }
    .image-circle { width: 210px; height: 210px; }
}
/* Large Devices (Desktops ≥992px) */





@media (min-width: 768px) {
    .hero-section {
        padding: 100px 80px;
        min-height: 50vh;
    }

    .hero-content .greeting {
        font-size: 2.8em;
    }

    .hero-content .name {
        font-size: 4em;
    }

    .hero-content .title {
        font-size: 2.2em;
    }

    .buttons {
        gap: 25px;
    }

    .btn1 {
        font-size: 0.8rem;
        padding: 14px 30px;
    }

    .hero-image img {
        width: 300px;
        height: 300px;
    }

    .image-circle {
        width: 310px;
        height: 310px;
        border-width: 9px;
    }
}




@media (min-width: 992px) {
    .hero-section {
        padding: 100px 80px;
        /* min-height: 100vh; */
    }

    .hero-content .greeting {
        font-size: 2.8em;
    }

    .hero-content .name {
        font-size: 5em;
    }

    .hero-content .title {
        font-size: 2.2em;
    }

    .buttons {
        gap: 25px;
    }

    .btn1 {
        font-size: 1.1rem;
        padding: 14px 30px;
    }

    .hero-image img {
        width: 350px;
        height: 350px;
    }

    .image-circle {
        width: 360px;
        height: 360px;
        border-width: 6px;
    }
}

/* Extra Large Devices (≥1200px) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 120px 100px;
    }

    .hero-content .greeting {
        font-size: 3.2em;
    }

    .hero-content .name {
        font-size: 6em;
    }

    .hero-content .title {
        font-size: 2.8em;
    }

    .hero-image img {
        width: 450px;
        height: 450px;
    }

    .image-circle {
        width: 460px;
        height: 460px;
    }

    .btn1 {
        font-size: 0.8rem;
        max-width: none;
        width: 200px;
    }
}


/* about     */

.about-section {
  background-color: #1a1e26;
  color: #fff;
  padding: 60px 20px;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ff5722;
}

.about-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
  width: 100%;
}

.about-text p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.6;
}

.about-text ul {
  padding-left: 20px;
  margin-top: -10px;
  margin-bottom: 15px;
}

.about-text ul li {
  margin-bottom: 8px;
}

.about-text .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #ff5722;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.about-text .btn:hover {
  background-color: #e64a19;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* =========================
   Medium Devices (Tablets)
   ========================= */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 40px;
  }

  .about-text {
    width: 50%;
  }

  .about-image {
    width: 50%;
  }

  .about-image img {
    max-width: 100%;
  }
}

/* =========================
   Large Devices (Desktops)
   ========================= */
@media (min-width: 992px) {
  .about-section {
    padding: 100px 80px;
  }

  .about-section h2 {
    font-size: 2.5rem;
  }

  .about-text p {
    font-size: 1.1rem;
  }

  .about-image img {
    max-width: 500px;
  }
}


/* contact */
.contact-section {
  padding: 80px 20px;
  background: #f9f9f9;
  font-family: 'Poppins', sans-serif;
  color: #000;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  resize: none;
  transition: border-color 0.3s ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7c3aed; /* purple accent */
  outline: none;
}

.contact-form button {
  background-color: #7c3aed;
  color: #fff;
  padding: 14px;
  border: none;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #6b21a8;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* project */

.projects {
      max-width: 1200px;
      margin: auto;
      padding: 0 20px;
      color: #ffffff; /* Ensure text is visible on dark background */
    }

    .project-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 60px 0;
      position: relative;
      border-bottom: 1px solid #eee;
      opacity: 0;
      transform: translateY(50px);
      transition: all 0.8s ease;
    }

    .project-item.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .project-left {
      flex: 1;
    }

    .project-number {
      font-size: 32px;
      color: #ccc;
      margin-bottom: 10px;
    }

    .project-title {
      font-size: 28px;
      font-weight: bold;
      margin: 0;
    }

    .project-tags {
      color: #999;
      margin: 8px 0;
    }

    .view-button {
      display: inline-block;
      padding: 10px 25px;
      margin-top: 15px;
      background: #000;
      color: #fff;
      border-radius: 30px;
      position: relative;
      overflow: hidden;
      transition: background 0.3s ease;
      cursor: pointer;
    }

    .view-button::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 20px;
      height: 20px;
      background: #fff;
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(0);
      transition: transform 0.4s ease;
      z-index: 0;
    }

    .view-button:hover::before {
      transform: translate(-50%, -50%) scale(20);
    }

    .view-button span {
      position: relative;
      z-index: 1;
      color: #fff;
      transition: color 0.3s ease;
    }

    .view-button:hover span {
      color: #000;
    }

    .project-preview {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
    }

    .project-preview img {
      width: 90%;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      opacity: 0;
      transform: scale(0.95);
      transition: all 0.5s ease;
    }

    .project-item:hover img {
      opacity: 1;
      transform: scale(1);
    }

   .project-preview img {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

/* Desktop: show on hover */
@media (min-width: 769px) {
  .project-item:hover .project-preview img {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: show when .visible class is added via JS */
@media (max-width: 768px) {
  .project-preview img.visible {
    opacity: 1;
    transform: translateY(0);
  }
}



    @media (max-width: 768px) {
      .project-item {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
        padding-bottom: 30px;
      }

      .project-preview {
        margin-top: 20px;
      }
    }

    /* view project big */
   .modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
  animation: fadeIn 0.4s ease;
}

.modal-content {
  background: #8181816b;
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  color: #fff;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border-color: #0b7579;
}

.modal.show .modal-content {
  transform: scale(1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 28px;
  color: #22c5ee;
  cursor: pointer;
}

/* links */
#modalLinks a {
  margin-right: 1rem;
  color: #00bcd4;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid transparent;
  transition: border 0.2s ease;
}

#modalLinks a:hover {
  border-bottom: 1px solid #00bcd4;
}


/* gallery */



  /* Optional - style scrollable tab area on mobile */
.nav-pills .nav-link {
  border: 1px solid #7e7d7d;
  color: #c2c2c2;
  background-color: transparent;
  transition: 0.3s ease;
  border-radius: 25px;
  font-size: 18px;
}

.nav-pills .nav-link:hover {
  background-color: #616161;
  color: #fff;
  border-radius: 25px;
}

.nav-pills .nav-link.active {
  background-color: #161616;
  border-color: #d6d6d6;
  color: #fff;
  font-weight: 500;
  border-radius: 25px;
}

@media (max-width: 576px) {
  .nav.nav-pills {
    flex-direction: row;
    align-items: center;
  }

  .nav-pills .nav-link {
    width: 100%;
    text-align: center;
    font-size: 13px;
  }
   
}


/* Masonry grid layout */
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 16px;
}

.masonry-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: calc(var(--order, 0) * 100ms);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.masonry-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* top btn end page */
#goTopBtn {
  /* display: none; Hidden by default */
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  font-size: 18px;
  background-color: #919191;
  color: white;
  border: none;
  outline: none;
  padding: 6px 16px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}
#goTopBtn:hover {
  background-color: #ff9175;
}


 footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 40px;
      border-top: 1px solid #ccc;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #6c757d;
      text-decoration: none;
    }

    .social-icons {
      display: flex;
      gap: 16px;
    }
    .middle{
      text-decoration: none;
      color: #7e7e7eb7;
    }
    .middle:hover{
      color: #a7a6a6;
    }

    .social-icons a {
      font-size: 24px;
      color: #6c757d;
      transition: color 0.3s ease;
      position: relative;
    }

    /* Instagram Gradient Hover */
    .social-icons a.insta:hover {
      color: transparent;
      background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
      -webkit-background-clip: text;
      background-clip: text;
    }

    /* Facebook Blue Hover */
    .social-icons a.fb:hover {
      color: #1877F2;
    }
    /* Responsive styles */
  /* Responsive Text Scaling */
@media (max-width: 768px) {
  footer .logo {
    font-size: 18px;
  }

  footer .middle  {
    font-size: 15px;
  }

  footer .social-icons a {
    font-size: 20px;
  }
  #goTopBtn{
    font-size: 15px;
  }
  .social-icons a.insta{
    color: transparent;
      background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
      -webkit-background-clip: text;
      background-clip: text;
  }
  .social-icons a.fb {
      color: #1877F2;
    }
}

@media (max-width: 480px) {
  footer .logo {
    font-size: 12px;
  }

  footer .middle  {
    font-size: 12px;
  }

  footer .social-icons {
    flex-direction: row;
    gap: 5px;
  }

  footer .social-icons a {
    font-size: 12px;
  }
   #goTopBtn{
    display: none;
  }
  .social-icons a.insta{
   color: transparent;
      background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
      -webkit-background-clip: text;
      background-clip: text;
  }
  .social-icons a.fb {
      color: #1877F2;
    }
}

a:hover{
  color: #979797;
}