body {
  margin: 0;
  background-image: url("A sleek website back.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #0f4c4c #083335;
}

/* Scrollbar Style */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #083335;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
  background-color: #0f4c4c;
  border-radius: 10px;
  border: 2px solid #083335;
  transition: all 0.3s ease;
}

/* Hover glow effect */
body::-webkit-scrollbar-thumb:hover {
  background-color: #17a2a2;
  box-shadow: 0 0 10px #17a2a2;
}



@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

    section {
      display: flex;
      flex-direction: column;
      height: 100vh;
      margin: 0;
      padding: 0;
      /* background: #083335; */
    }

    /* header */       
    .header {
      height: 70px;
      margin: 0;
      background-color: #083335;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 30px;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      gap: 20px;
      backdrop-filter: blur(6px);
      box-shadow: 0 4px 15px rgba(207, 204, 204, 0.4);
    }

    /* Logo Styles */
    .logo-container {
      flex-shrink: 0;
      padding: 6px 12px;
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.1));
      border: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px) saturate(120%);
      border-radius: 12px;
      transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
      box-shadow: 0 4px 20px rgba(3,7,13,0.25);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .logo-container:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(144, 189, 72, 0.15), 0 4px 15px rgba(3,7,13,0.4);
      border-color: rgba(144, 189, 72, 0.3);
      background: linear-gradient(180deg, rgba(144,189,72,0.08), rgba(0,0,0,0.15));
    }

    .logo {
      height: 60px;
      width: auto;
      max-width: 150px;
      transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
      filter: brightness(1.1) saturate(1.1);
      display: block;
      object-fit: contain;
      flex-shrink: 0;
    }

    .logo:hover {
      transform: scale(1.05);
      filter: brightness(1.2) saturate(1.2) drop-shadow(0 0 12px rgba(144, 189, 72, 0.4));
    }

    .navbar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 35px;
      transition: all 0.3s ease;
      flex: 1;
      z-index: 999;
    }

    /* Contact Us Button Styles */
    .contact-button-container {
      flex-shrink: 0;
      position: relative;
      z-index: 1001;
      margin-left: auto; /* Pushes the contact button to the right end */
    }

    .contact-us-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 24px;
      background: #0c1b23;
      color: white;
      text-decoration: none;
      border-radius: 30px;
      font-weight: 600;
      font-size: 14px;
      letter-spacing: 0.5px;
      backdrop-filter: blur(12px) saturate(150%);
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 
        0 8px 25px rgba(144, 189, 72, 0.25),
        0 4px 15px rgba(3,7,13,0.3),  
        inset 0 1px 0 rgba(255,255,255,0.2);
      transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
      position: relative;
      overflow: hidden;
    }

    .contact-us-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: left 0.6s ease;
    }

    .contact-us-btn:hover::before {
      left: 100%;
    }

    .contact-us-btn:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 
        0 12px 35px rgba(144, 189, 72, 0.35),
        0 6px 25px rgba(49, 144, 220, 0.2),
        0 2px 10px rgba(3,7,13,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
      background: #083335b6;
      border-color: rgba(255, 255, 255, 0.3);
    } 

    .contact-us-btn:active {
      transform: translateY(-1px) scale(0.98);
      transition: all 0.1s ease;
    }

    .contact-us-btn i {
      font-size: 16px;
      transition: all 0.3s ease;
    }

    .contact-us-btn:hover i {
      transform: rotate(5deg) scale(1.1);
    }

    .navbar.shrunk {
      height: 8vh;
      font-size: 18px;
      gap: 25px;
    }

    .nav-item {
      color: #bbb;
      font-size: 22px;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
    }

    .nav-item:hover::after,
    .nav-item.active::after {
      content: attr(data-text);
      position: absolute;
      bottom: -45px;
      left: 50%;
      transform: translateX(-50%);
      color: #fff;
      padding: 6px 12px;
      font-size: 13px;
      border-radius: 6px;
      background: rgba(0,0,0,0.6);
      white-space: nowrap;
      opacity: 1;
      transition: all 0.3s ease;
    }

    .nav-item:hover i,
    .nav-item.active i {
      transform: translateY(-8px);
      color: rgb(144, 189, 72);
      text-shadow: 0 0 8px rgba(144, 189, 72, 0.6);
    }

    .nav-item i {
      transition: all 0.3s ease;
    }
    .nav-item a {
      text-decoration: none;
      color: inherit;
    }

     .mainpage {
            background-image: url("Sales Product Website.png");
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover; 
            height: 100vh; 
            width: 100%;
            box-sizing: border-box;
            padding: 20px; 
            position: relative;
            padding-top: 180px; /* more space below header for SWR text */
        }

/* Panels inside mainpage */
.mainpage .panel {
  position: absolute;
  top: 50%;
  left: 50%;
  /* slightly above center when hidden, scale down a bit */
  transform: translate(-50%, -45%) scale(0.98);
  width: 80%;
  max-width: 900px; 
  transition: opacity 420ms cubic-bezier(.2,.9,.2,1), transform 420ms cubic-bezier(.2,.9,.2,1), visibility 420ms;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
}

.mainpage .panel.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
}

/* Features block inside home panel */
.features {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: 5%; /* reduced margin to bring cards closer to "From Pakistan" */
  flex-wrap: wrap;
}

.feature-card {
  --card-w: 180px;
  --card-h: 120px;
  width: var(--card-w);
  height: var(--card-h);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.15));
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(6px) saturate(120%);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(3,7,13,0.6);
  transition: transform 360ms cubic-bezier(.2,.9,.2,1), box-shadow 240ms ease, opacity 240ms ease;
  cursor: pointer;
}

.feature-card:focus,
.feature-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 18px 40px rgba(3,7,13,0.7);
  outline: none;
}

.feature-card[aria-pressed="true"] {
  transform: translateY(-6px) scale(1.04) rotate(-1deg);
  box-shadow: 0 20px 50px rgba(144,189,72,0.12), 0 8px 18px rgba(0,0,0,0.6);
}

.features h4 { margin: 8px 0 0 0; font-size: 16px; }

/* Icon sizing and per-card colors */
.features .material-symbols-outlined {
  font-size: 42px;
  margin-bottom: 8px;
  opacity: 0.98;
  transition: transform 240ms ease, filter 240ms ease;
}

.feature-card:nth-child(1) .material-symbols-outlined { color: #6C5CE7; }
.feature-card:nth-child(2) .material-symbols-outlined { color: #00b894; }
.feature-card:nth-child(3) .material-symbols-outlined { color: #0984e3; }
.feature-card:nth-child(4) .material-symbols-outlined { color: #fd79a8; }

/* Responsive: stack on small screens */
@media (max-width: 720px) {
  .features { gap: 12px; margin-top: 8%; }
  .feature-card { width: 46%; --card-h: 110px; }
}

    .Home-Text {
    
      position: relative;
      text-align: center;
      color: white;
      padding: 20px;
      border-radius: 10px;
      margin-top: 10px;
    }

   .Home-Text h1 {
        font-size: 48px;
        margin-bottom: 20px;
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    }

/* Gradient typing effect for name */
.Home-Text .name-part {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(90deg, #f5f895, #f67280, #c06c84, #355c7d);
  -webkit-background-clip: text;
  background-clip: text;
  background-clip: text;
}

.Home-Text .name-first,
.Home-Text .name-last {
  width: 0;
  display: inline-block;
  overflow: hidden;
}


.Home-Text.animate .name-first {
  animation: name-type 3s steps(20,end) forwards;
  animation-iteration-count: 5;
  animation-fill-mode: forwards;
}

.Home-Text.animate .name-last {
  margin-left: 6px;
  animation: name-type 3s steps(30,end) 1.8s forwards;
  animation-iteration-count: 10000;
  animation-fill-mode: forwards;
}

@keyframes name-type {
  from { width: 0; }
  to { width: 14ch; }
}


.Home-Text .role {
  color: #f8f9fa;
  opacity: 0;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Role animation triggered by .animate, runs once */
.Home-Text.animate .role {
  animation: role-in 0s ease forwards 3.8s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes role-in {
  0% { opacity: 0; transform: translateY(9px); letter-spacing: 0.05em; }
  60% { opacity: 1; transform: translateY(0); letter-spacing: 0.5em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: 0.15em; }
}

/* Pop-up from top for the pre text (From Pakistan) */
.text-pop-up-top {
  opacity: 0;
  transform: translateY(-10px) scale(1);
}

/* .Home-Text.animate .text-pop-up-top {
  /* placeholder: animation is triggered by adding .pop via JS after role animation ends */
  /* intentionally left non-styling to avoid auto-run; see .text-pop-up-top.pop */
/* } */

.text-pop-up-top.pop {
  animation: pop-up-top 15s cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes pop-up-top {
  0% { opacity: 0; transform: translateY(-10px) scale(0.98); }
  60% { opacity: 1; transform: translateY(6px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.Home-Text pre {
   font-size: 20px;
   color: #ddd;
   margin-top: 10px;
   margin-bottom: 20px; /* reduced margin bottom to bring cards closer */
   font-family: 'Courier New', Courier, monospace;
   font-weight: bolder;
    }   

.feature-card {
  opacity: 0; /* Start hidden */
  transform: translateY(20px); /* Start slightly below */
  transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.feature-card.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for each feature card */
.feature-card:nth-child(1).animate {
  transition-delay: 0s;
}
.feature-card:nth-child(2).animate {
  transition-delay: 0.2s;
}
.feature-card:nth-child(3).animate {
  transition-delay: 0.4s;
}
.feature-card:nth-child(4).animate {
  transition-delay: 0.6s;
}
  /* Bounce animation */
    .feature-card.bounce {
      animation: bounce 10s cubic-bezier(0.2, 0.9, 0.2, 1) infinite 3s;
    }

    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px) scale(1.02); }
    }

    
/* Custom scrollbar styling */
/* WebKit-based browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.08));
  border-radius: 8px;
  margin: 6px 0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2e7a63, #14453a);
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.12);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #39a072, #1b6b4f);
  transform: translateZ(0);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #14453a transparent;
}

html, body { scroll-behavior: smooth; }

    .feature-card.bonus-logo .material-symbols-outlined {
      color: #f1c40f; 
      font-size: 48px;
    }

    .AboutMe{
      min-height: 100vh;
      display: flex;
      background: linear-gradient(135deg, #0833354d 0%, #083335 100%);
      position: relative;
      justify-content: center;
      align-items: center;
      padding: 60px 20px;
      box-sizing: border-box;
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .AboutMe.animate {
      opacity: 1;
      transform: translateY(0);
    }

    /* Services Container */
    .services-container {
      max-width: 1400px;
      width: 100%;
      margin: 0 auto;
    }

    /* Services Header */
    .services-header {
      text-align: center;
      margin-bottom: 50px;
    }

    .services-title {
      font-size: 3rem;
      font-weight: 700;
      color: white;
      margin-bottom: 15px;
      font-family: 'Poppins', sans-serif;
    }

    .services-title span {
      color: rgb(144, 189, 72);
      background: linear-gradient(45deg, rgb(144, 189, 72), #4CAF50);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .services-subtitle {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.8);
      max-width: 600px;
      margin: 0 auto;
      line-height: 1.6;
    }

    /* Services Grid */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 30px;
      padding: 20px 0;
    }

    /* Service Card */
    .service-card {
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 20px;
      backdrop-filter: blur(10px);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .service-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(144, 189, 72, 0.1), transparent);
      transition: left 0.5s ease;
    }

    .service-card:hover::before {
      left: 100%;
    }

    .service-card:hover {
      transform: translateY(-10px) scale(1.02);
      border-color: rgba(144, 189, 72, 0.3);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(144, 189, 72, 0.1);
    }

    /* Service Icon */
    .service-icon {
      width: 70px;
      height: 70px;
      background: linear-gradient(135deg, rgb(144, 189, 72), #4CAF50);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      transition: all 0.3s ease;
    }

    .service-icon i {
      font-size: 30px;
      color: white;
    }

    .service-card:hover .service-icon {
      transform: rotateY(180deg) scale(1.1);
      box-shadow: 0 10px 20px rgba(144, 189, 72, 0.3);
    }

    /* Service Content */
    .service-card h3 {
      font-size: 1.5rem;
      font-weight: 600;
      color: white;
      margin-bottom: 15px;
      font-family: 'Poppins', sans-serif;
    }

    .service-card p {
      font-size: 1rem;
      color: rgba(255, 255, 255, 0.8);
      line-height: 1.6;
      margin-bottom: 20px;
    }

    /* Service Features */
    .service-features {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 15px;
    }

    .service-features span {
      background: rgba(144, 189, 72, 0.2);
      color: rgb(144, 189, 72);
      padding: 5px 12px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 500;
      border: 1px solid rgba(144, 189, 72, 0.3);
      transition: all 0.3s ease;
    }

    .service-card:hover .service-features span {
      background: rgba(144, 189, 72, 0.3);
      transform: translateY(-2px);
    }
    .AboutMeText{
      flex: 1;
      padding: 5px;
      line-height: 1;
      margin-bottom: 5px;
    }

    .about-image {
      flex: 1;
      text-align: center;
    }

    .AboutInfo{
      flex: 1;
    }

    .myself p,  .intro,  .megaclients h5 ,.client-list i,.education p,  .skills li {
      opacity: 1;
      transform: translateY(10px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
   
    .myself p.text-animate, .megaclients h5.text-animate ,.client-list i.text-animate,  .about-image, .intro.text-animate, .education p.text-animate, .skills li.text-animate  {
      opacity: 1;
      transform: translateY(0);
    }
    .AboutMySelf{
     flex: 2;
     padding: 25px;
     margin: 10px;
     border-radius: 20px;
     background: rgba(60, 68, 68, 0.8);
     border: 1px solid rgba(255, 255, 255, 0.15);
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
     backdrop-filter: blur(6px);
     transition: transform 0.5s ease, box-shadow 0.3s ease;
     cursor: pointer;
     }

    .AboutMySelf:hover {
      transform: translateY(-4px);
      box-shadow: 0 6px 20px rgba(50, 141, 220, 0.3);
    }

    .AboutMySelf h5{
      font-size: normal;
      font-weight: bolder;
      color: white;
      font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    }
    .AboutMySelf h5 span{
      color: rgb(144, 189, 72);
      font-weight: bolder;
      font-size: normal;
    }
    .myself{
      line-height: 1;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      
    }
    .myself h5{
      font-size: medium;
      font-weight: bolder;
      color: white;
      font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    }
    .spanwidth{
      width: 10px;
      height: 10px;
      font-weight: bolder;
      font-size: normal;
      border-radius: 8px;
      color:  rgb(144, 189, 72);
      
    }
    .myself p{
      color: #bbb;
    }
    .intro{
      color: #bbb;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1;
    }
    .intro span{
      color:  rgb(144, 189, 72);
      font-weight: bolder;
      font-size: normal;
    }
.megaclients {
  flex: 2;
  padding: 15px 25px;
  margin: 10px;
  border-radius: 20px;
  background: rgba(60, 68, 68, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer ;
  height: 100px;
  display: flex;
  flex-direction: column;
}

.megaclients:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(50, 141, 220, 0.3);
  cursor: pointer;
}

/* Title */
.megaclients h5 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.megaclients span {
  color:  rgb(144, 189, 72);
  font-weight: 800;
}

/* Client list */
.client-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.client-list i {
  color: #083335;
  font-size: 0.9rem;
  font-style: normal;
  padding: 5px 14px;
  border-radius: 8px;
  background: white;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.client-list i:hover {
  color: white;
  background: #083335;
  transform: translateY(-3px);
}

.education{
  margin-top: 25px;
  z-index: 10;
  line-height: 0.001;
}
.education:hover{
  cursor: pointer;
}
.education h5{
  color:  rgb(144, 189, 72);
  font-family: monospace;
  font-size: xx-large;
}
.education p{
  color: white;
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    
}

.skills {
  flex: 2;
  text-align:  end ;
  padding: 15px 25px;
  margin: 10px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skills:hover{
  cursor: pointer;
}

.skills h5{
  color:  rgb(144, 189, 72);
  font-weight: bolder;
  font-size: normal;
}

.skills ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: white;
}

.skills li {
  padding: 5px 0;
  transition: all 0.3s ease;
  line-height: 0.8;
}

.skills li:hover {
  color:  rgb(144, 189, 72);
 font-weight: bolder;
  transform: translateX(5px);
}

/* Mobile responsiveness for AboutMe */
@media (max-width: 768px) {
  .AboutMe {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: 20px;
  }

  .AboutMeText, .about-image, .AboutInfo {
    flex: none;
    width: 100%;
  }

  .about-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .navbar {
    padding: 0 15px;
  }

  .navbar.shrunk {
    height: 6vh;
    font-size: 16px;
    gap: 15px;
  }

  .nav-item i {
    font-size: 18px;
  }

  .Home-Text h1 {
    font-size: 36px;
  }

  .features {
    margin-top: 10%;
  }

  .feature-card {
    width: 45%;
  }

  .mainpage {
    padding-top: 100px !important;
    min-height: calc(100vh - 60px) !important;
  }

  /* Services section mobile centering - perfect center with equal gaps */
  .services-container {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .service-card {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  /* Project cards mobile centering - perfect center with equal gaps */
  .project-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: none;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .project-card {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
}

/* Client welcome section entrance and staggered children animation */
.client-welcomemessage {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 560ms cubic-bezier(.2,.9,.2,1), transform 560ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, opacity;
  min-height: 350px;
}
.client-welcomemessage.animate {
  opacity: 1;
  transform: translateY(0);
}

.client-welcomemessage .welcome-text h1,
.client-welcomemessage .welcome-text p,
.client-welcomemessage .card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.client-welcomemessage .text-animate {
  opacity: 1 !important;
  transform: none !important;
}

/* Slight style for active card state (optional) */
.client-welcomemessage .card.active {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Hover and focus lift for cards */
.client-welcomemessage .card {
  cursor: pointer;
  will-change: transform, box-shadow;
  transition: transform 340ms cubic-bezier(.2,.9,.2,1), box-shadow 340ms ease, opacity 280ms ease;
}
.client-welcomemessage .card:hover,
.client-welcomemessage .card:focus,
.client-welcomemessage .card:focus-visible {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 18px 40px rgba(3,7,13,0.45);
  z-index: 5;
}
.client-welcomemessage .card:active {
  transform: translateY(-6px) scale(0.995);
}

.client-welcomemessage {
  display: flex;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  max-height: 45vh;
  border: none;
  border-top: 3px solid rgb(144, 189, 72);
  border-bottom: 3px solid rgb(144, 189, 72);
  font-family: 'Poppins', sans-serif;
  padding: 20px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  box-shadow: 0 10px 30px rgba(8, 51, 53, 0.1);
}

.client-welcomemessage::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(144, 189, 72, 0.03) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.welcome-container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  padding-top: 10px;
}

.welcome-text h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #083335;
  margin-bottom: 10px;
  margin-top: 0;
  animation: fadeInDown 1s ease-out;
  transition: color 0.5s ease;
  text-shadow: 0 2px 4px rgba(8, 51, 53, 0.1);
}

.welcome-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3e50;
  animation: fadeIn 1.5s ease-out;
  transition: color 0.5s ease;
  font-weight: 500;
}

.welcome-text .intro {
  margin-bottom: 10px;
}

.welcome-text .cta {
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  animation: fadeIn 2s ease-out;
  transition: color 0.5s ease;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 10px;
}

.card {
  --card-w: 160px;
  width: var(--card-w);
  padding: 15px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid rgba(144, 189, 72, 0.2);
  backdrop-filter: blur(10px) saturate(120%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #083335;
  box-shadow: 0 8px 25px rgba(8, 51, 53, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(144, 189, 72), #4CAF50);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(144, 189, 72, 0.3);
  border-color: rgb(144, 189, 72);
}
.welcome-text span{
  color: rgb(144, 189, 72);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(144, 189, 72, 0.2);
}
.card h3 {
  font-size: 1rem;
  color: #083335;
  margin-bottom: 6px;
  transition: all 0.3s ease;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.card p {
  font-size: 0.8rem;
  color: #6c757d;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.card:hover h3,
.card:hover p {
  color: white;
  transform: translateY(-2px);
} 

.animated-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.shape1 {
  width: 80px;
  height: 80px;
  background: hsla(183, 29%, 40%, 0.144);
  top: 15;
  left: -20px;
}

.shape2 {
  width: 60px;
  height: 60px;
  background: rgb(144, 189, 72);
  bottom: 20px;
  right: 50px;
  left: 110%;
  bottom: 5px;
}

.shape3 {
  width: 70px;
  height: 70px;
  background: #c2f0f7;
  top: 50%;
  left: 100%;
  transform: translate(-50%, -50%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-15px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Skills Section */
.Skills-Section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  max-height: 30vh;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid rgb(144, 189, 72);
  border-bottom: 3px solid rgb(144, 189, 72);
  box-shadow: 0 10px 30px rgba(8, 51, 53, 0.1);
}

.Skills-Section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(144, 189, 72, 0.03) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Skills Text */
.skills-text {
  color: #083335;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  text-align: center;
  animation: fadeInDown 1s ease-out;
  text-shadow: 0 2px 4px rgba(8, 51, 53, 0.1);
}

.words {
  height: 1.4em;
  overflow: hidden;
  display: inline-block;
  margin-left: 5px; 
}

.word {
  display: block;
  color: rgb(144, 189, 72);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  line-height: 1.4em;
  text-transform: capitalize;
  padding-left: 3px;
  animation: animate 8s steps(4, end) infinite, textGlow 3s ease-in-out infinite;
}

/* Word Animation */
@keyframes animate {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-100%);
  }
  45% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(-200%);
  }
  70% {
    transform: translateY(-200%);
  }
  75% {
    transform: translateY(-300%); 
  }
  95% {
    transform: translateY(-300%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 10px rgba(144, 189, 72, 0.4);
  }
  50% {
    text-shadow: 0 0 25px rgba(144, 189, 72, 0.8);
  }
  100% {
    text-shadow: 0 0 10px rgba(144, 189, 72, 0.4);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Slider */
.slider {

  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
  opacity: 0.8; 
  mix-blend-mode: normal; 
  margin-top: 10px;
}

.slider .list {
  display: flex;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}

.slider .list .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 10s linear infinite;
  animation-delay: calc((10s / var(--quantity)) * (var(--position) - 1)) !important;
  transition: filter 0.1s ease;
}

.slider .list .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes autoRun {
  from {
    left: 100%;
  }
  to {
    left: calc(var(--width) * -1);
  }
}

.slider:hover .item {
  animation-play-state: paused;
  filter: grayscale(0.7);
}

.slider .item:hover {
  filter: grayscale(0) brightness(1.1); 
}

/* Responsive Design */
@media (max-width: 768px) {
  .Skills-Section {
    padding: 15px;
    gap: 15px;
  }

  .skills-text {
    font-size: small; 

  }

  .slider {
    width: 90%;
    --width: 80px;
    --height: 80px;
  }
}     
/* Project Section */
.my-project {
  position: relative;
  padding: 50px 20px;
  margin: 0 auto;
  overflow: hidden;
  height: auto; 
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: yellowgreen;
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 2;
}
.section-title {
  position: relative;
  display: inline-block;
 
}

/* .section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 44px;
  height: 4px;
  background: yellowgreen;
  transform: translateY(-50%);
  border-radius: 2px;
  opacity: 0.95;
} */

/* .section-title ::before { left: -40%; }
.section-title ::after  { right: -16px; } */


@media (max-width: 720px) {
  .section-title ::before,
  .section-title ::after { width: 28px; height: 3px;  }
}

/* Background Video */
.project-background-video {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,10,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 2000;
}

.my-project.video-active .project-background-video {
  opacity: 1;
  visibility: visible;
}

.background-video {
  width: min(1100px, 92%);
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.my-project.video-active .background-video {
  clip-path: circle(150% at 30px 30px);
}

.close-video {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.18s ease;
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
}

.my-project.video-active .close-video {
  opacity: 1;
  visibility: visible;
}

.close-video:hover {
  background: rgb(144, 189, 72);
}

/* Project Cards Container */
.project-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* nicer scrollbar for wide view */
.project-cards-container::-webkit-scrollbar {
  height: 8px;
}
.project-cards-container::-webkit-scrollbar-track { background: transparent; }
.project-cards-container::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.12); border-radius: 8px; }

/* Project Card */
.project-card {
  --card-bg: rgba(12, 27, 35, 0.75);
  --card-border: rgba(144, 189, 72, 0.18);
  --glow-size: 120px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px 32px;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(8, 51, 53, 0.94), rgba(8, 51, 53, 0.6));
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
  color: #e5f5f3;
  isolation: isolate;
  max-height: 360px;
}

.project-card::before,
.project-card::after,
.project-card__light {
  content: "";
  position: absolute;
  inset: -60% 50% auto auto;
  width: var(--glow-size);
  height: var(--glow-size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(144, 189, 72, 0.45) 0%, rgba(144, 189, 72, 0) 70%);
  opacity: 0;
  transform: translate(40%, -40%) scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

.project-card::after {
  inset: auto auto -60% -20%;
  background: radial-gradient(circle, rgba(50, 141, 220, 0.4) 0%, rgba(50, 141, 220, 0) 70%);
  transform: translate(-40%, 40%) scale(0.8);
}

.project-card__light {
  inset: 30% -30% auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 60%);
  filter: blur(0px);
}

.project-card:hover::before,
.project-card:hover::after,
.project-card:hover .project-card__light,
.project-card.active::before,
.project-card.active::after,
.project-card.active .project-card__light {
  opacity: 1;
  transform: translate(0, 0) scale(1.1);
}

.project-card__badge {
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(144, 189, 72, 0.95), rgba(49, 141, 220, 0.85));
  color: #0c1b23;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(144, 189, 72, 0.25);
}

.project-card h1 {
  font-size: 1.6rem;
  margin: 12px 5px 20px;
  line-height: 1.25;
  color: #f0faf8;
}

.project-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.project-info__tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(12, 27, 35, 0.55);
  border: 1px solid rgba(144, 189, 72, 0.35);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(217, 243, 230, 0.9);
  transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.project-info__tags span::before {
  content: "#";
  color: rgba(144, 189, 72, 0.9);
  font-size: 0.72rem;
}

.project-info__tags span:hover {
  transform: translateY(-3px);
  background: rgba(144, 189, 72, 0.2);
  border-color: rgba(144, 189, 72, 0.6);
}

.project-card p {
  margin: 0;
  color: rgba(229, 245, 243, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  margin-top: auto;
}

.project-card__meta .meta-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(189, 219, 210, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card__meta .meta-group span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-card__meta .meta-group span i {
  font-size: 1rem;
  color: rgba(144, 189, 72, 0.9);
}

.project-info__cta {
  align-self: flex-start;
  margin-top: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(144, 189, 72, 0.6);
  background: rgba(144, 189, 72, 0.15);
  color: #e5f5f3;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, letter-spacing 0.4s ease;
}

.project-info__cta:hover {
  transform: translateY(-4px);
  background: rgba(144, 189, 72, 0.35);
  box-shadow: 0 16px 40px rgba(144, 189, 72, 0.35);
  letter-spacing: 0.12em;
}

.project-card:hover,
.project-card.active {
  transform: translateY(-14px) scale(1.015);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.35);
  border-color: rgba(144, 189, 72, 0.45);
}

/* When video overlay is active, dim cards slightly but keep them visible */
.my-project.video-active .project-cards-container {
  filter: blur(0.6px) saturate(0.95);
  opacity: 0.9;
}

/* Slightly enlarge the focused card when video opens */
.my-project.video-active .project-card.active {
  transform: translateY(-18px) scale(1.03);
  z-index: 3;
}

@media (max-width: 1024px) {
  .project-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .project-card {
    padding: 24px 20px;
    min-height: 330px;
  }
  .project-card__badge {
    font-size: 0.72rem;
  }
  .project-card h1 {
    font-size: 1.45rem;
  }
}

@media (max-width: 768px) {
  .project-cards-container {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .project-card {
    padding: 24px;
    min-height: 0;
  }
  .project-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .wrapper {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Wrapper and Animation Styles */
.wrapper {
  --color: #1F242D;
  --color-invert: #ffffff;
  --clip-path: circle(15px at 30px 30px);
  --clip-path-hover: circle(50px at 30px 30px);
  --duration: 0.4s;
  --timing-function: ease;
  position: relative;
  width: 150px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.wrapper .video {
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: var(--clip-path);
  transition: clip-path var(--duration) var(--timing-function);
}

.wrapper .video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #c4cbde;
}

.wrapper .text {
  position: absolute;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2px;
  opacity: var(--opacity, 1);
  transition: opacity 0.3s var(--timing-function) 0.2s;
}

.wrapper .text::before,
.wrapper .text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -1px;
  right: 25px;
  height: 0;
}

.wrapper .text::before {
  box-shadow: 26px 0 0 1px var(--color);
  right: var(--r, 100%);
  opacity: var(--opacity, 0);
  transition: right 0.5s ease-in, opacity 0.1s linear;
}

.wrapper .text::after {
  box-shadow: 26px 0 0 1px var(--color-invert);
  clip-path: var(--clip-path);
  transition: clip-path var(--duration) var(--timing-function);
}

.wrapper .text > span::before,
.wrapper .text > span::after {
  content: attr(data-text);
  padding-left: 40px;
}

.wrapper .text > span::before {
  color: var(--color);
}

.wrapper .text > span::after {
  color: var(--color-invert);
  clip-path: var(--clip-path);
  transition: clip-path var(--duration) var(--timing-function);
  position: absolute;
}

.wrapper input.video-toggle {
  color: white;
  width: 120px;
  height: 30px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 30px;
  outline: none;
  z-index: 2;
  appearance: none;
  cursor: pointer;
}

.wrapper input.video-toggle:focus {
  outline: 0;
}

.wrapper input.video-toggle:hover ~ .video {
  clip-path: var(--clip-path-hover);
}

.wrapper input.video-toggle:hover ~ .text::before {
  --r: 25px;
  --opacity: 1;
}

.wrapper input.video-toggle:hover ~ .text::after,
.wrapper input.video-toggle:hover ~ .text > span::after {
  clip-path: var(--clip-path-hover);
}

/* Project Info Styles */
.project-info {
  padding: 15px;
  flex: 1;
}

.project-info h1 {
  font-size: 1.5rem;
  color: white;
  margin-top: -20px;
}

.project-info .gradient {
  background: linear-gradient(45deg, #007BFF, #00C4B4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-info p {
  font-size: 0.9rem;
  color: white;
  line-height: 1.5;
}
/* Responsive Design */
@media (max-width: 768px) {
  .my-project {
    padding: 30px 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .project-card {
    flex: 0 0 300px; /* Smaller cards on mobile */
    padding: 15px;
  }

  .wrapper {
    width: 120px;
    height: 80px;
  }

  .project-info h1 {
    font-size: 1.3rem;
  }

  .project-info p {
    font-size: 0.8rem;
  }

  .close-video {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
  }
}

/* Play button overlay on project cards */
.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(144,189,72,0.95), rgba(50,141,220,0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  box-shadow: 0 10px 30px rgba(3,7,13,0.32);
  cursor: pointer;
  z-index: 5;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 160ms ease;
}
.card-play i{ font-size: 18px; }
.card-play:hover{ transform: translate(-50%, -50%) scale(1.06); }

/* Show inline preview videos inside cards as small thumbnails */
.project-card .video {
  display: block !important;
  width: 150px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(3,7,13,0.08);
  margin-right: 12px;
}

.wrapper {
  width: 150px; /* ensure wrapper matches video preview size */
  height: 100px;
}

/* When modal is active, make overlay clickable and center video */
.project-background-video { display: none; }
.my-project.video-active .project-background-video { display: flex; }

/* Contact Page */
.contact-section {
  text-align: center;
  background-color: white;
  height: 90vh;
}

.contact-title {
  position: relative;
  font-size: 2rem;
  color: #083335;
  display: inline-block;
  
}

.contact-title::before,
.contact-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100px;
  height: 2px;
  background: #083335;
}

.contact-title::before {
  left: 34%;
}

.contact-title::after {
  margin-left: 12px;
}


.contact-subtitle {
  font-size: 1.6rem;
  margin-top: -18px;
}

.contact-subtitle span {
 color: #083335b6;
}


.contact-text {
  color: #555;
  margin-top: -15px;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info {
  border-radius: 12px;
  padding: 20px;
  width: 280px;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.info-box i {
  font-size: 20px;
  color: #083335;
}

.info-box-text{
  line-height: 0.1;
  text-align: left;
}

.contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 480px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  outline: none;
  background-color: white;
  transition: all 0.3s ease;
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23083335'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 50px;
  border: 2px solid rgba(144, 189, 72, 0.2);
  box-shadow: 0 2px 8px rgba(8, 51, 53, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form select::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(144, 189, 72, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* .contact-form select:hover removed - no hover effects on dropdown */

.contact-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgb(144, 189, 72);
  box-shadow: 0 0 0 3px rgba(144, 189, 72, 0.2), 0 4px 15px rgba(144, 189, 72, 0.25);
  transform: translateY(-1px);
}

.contact-form select:focus {
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2390BD48'><path d='M7 10l5 5 5-5z'/></svg>");
}

.contact-form select option {
  padding: 12px 15px;
  background-color: white;
  color: #083335;
  font-weight: 500;
}

.contact-form select option:first-child {
  color: #999;
  font-style: italic;
}

.contact-form select option:checked,
.contact-form select option:selected {
  background-color: rgba(144, 189, 72, 0.1);
  font-weight: 600;
}

.contact-form textarea {
  resize: none;
  height: 100px;
}

#submit-btn {
  width: 100%;
  background: #083335;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#submit-btn:hover {
  background: #0b4949;
}

#status-message {
  margin-top: 10px;
  font-weight: 500;
}

/* Footer Section */
.Footer-Section {
  background: linear-gradient(135deg, #083335 0%, #0c1b23 50%, #14453a 100%);
  color: white;
  position: relative;
  overflow: hidden;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 0;
}

.Footer-Section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(144, 189, 72), #4CAF50, rgb(144, 189, 72));
}

.footer-container {
  max-width: 1200px;
}

/* Footer Top Section */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
  justify-content: center;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
}

.footer-logo {
  height: 120px;
  width: auto;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(144, 189, 72, 0.4));
}

.footer-brand {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  font-family: 'Poppins', sans-serif;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-style: italic;
}

/* Footer Content Grid */
.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgb(144, 189, 72);
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: rgb(144, 189, 72);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: rgb(144, 189, 72);
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-contact i {
  color: rgb(144, 189, 72);
  width: 18px;
  font-size: 16px;
}

/* Footer Social Section */
.footer-social {
  text-align: center;
  margin: 0;
}

.footer-social h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
}

.social-media-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-media-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: transparent;
  border: 2px solid rgba(144, 189, 72, 0.4);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  margin-bottom: 5px;
}

.social-media-icons a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(144, 189, 72), #4CAF50);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.social-media-icons a:hover::before {
  opacity: 1;
}

.social-media-icons a i {
  font-size: 20px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-media-icons a:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgb(144, 189, 72);
}

.social-media-icons a:hover i {
  color: white;
  transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
  margin-bottom: 7;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin-bottom: 10px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: rgb(144, 189, 72);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .Footer-Section {
    padding: 40px 0 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-logo-section {
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    gap: 20px;
  }
  
  /* Keep footer social icons exactly same as desktop */
  .social-media-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .social-media-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid rgba(144, 189, 72, 0.4);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
  }
  
  .social-media-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(144, 189, 72), #4CAF50);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
  }
  
  .social-media-icons a:hover::before {
    opacity: 1;
  }
  
  .social-media-icons a i {
    font-size: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;

  }
  
  .social-media-icons a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(144, 189, 72, 0.4);
    border-color: rgba(144, 189, 72, 0.6);
  }
  
  .social-media-icons a:hover i {
    color: white;
    transform: scale(1.1);
  }
}

/* --- Mobile overhaul: make site truly responsive on small screens --- */
@media (max-width: 820px) {
  /* Allow sections to grow naturally and be scrollable */
  section,
  .mainpage,
  .AboutMe,
  .client-welcomemessage,
  .Skills-Section,
  .my-project,
  .contact-section {
    height: auto !important;
    min-height: auto !important;
    padding-top: 10px !important;
    padding-bottom: 28px !important;
  }

  /* Make panels stack instead of absolutely centered overlays */
  .mainpage .panel {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 8px 0 !important;
    box-sizing: border-box;
  }

  /* Header & navbar tweaks for smaller screens */
  .header {
    padding: 0 15px !important;
    height: 65px !important;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between !important;
  }

  .logo {
    height: 40px !important;
    max-width: 130px !important;
    order: 0 !important;
    margin-right: 0 !important;
  }

  .contact-us-btn {
    padding: 10px 18px !important;
    font-size: 12px !important;
    border-radius: 25px !important;
    gap: 8px !important;
  }

  .contact-us-btn i {
    font-size: 14px !important;
  }

  .navbar {
    justify-content: center;
    padding: 8px 14px;
    gap: 12px;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
  }

  /* Reduce main title sizes */
  .Home-Text h1 { font-size: 28px !important; }
  .section-title { font-size: 1.6rem !important; margin-bottom: 18px !important; }

  /* Improve images and video previews to be responsive */
  img, video { max-width: 100%; height: auto; display: block; }

  /* Projects: stack cards full-width, make previews span full width above text */
  .project-cards-container {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    gap: 14px !important;
    max-width: 100% !important;
  }

  .project-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
    border-radius: 14px !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .project-card .wrapper,
  .project-card .video {
    width: 100% !important;
    height: auto !important;
    flex: none !important;
    margin: 0 0 12px 0 !important;
    border-radius: 10px !important;
    clip-path: none !important;
    overflow: hidden;
  }

  /* project info becomes normal flow below preview */
  .project-info { padding: 10px 4px !important; }
  .project-info h1 { font-size: 1.15rem !important; margin-bottom: 8px !important; }
  .project-info p { font-size: 0.95rem !important; line-height: 1.4 !important; }

  /* Make CTA full width for easier tapping */
  .project-info__cta { width: 100% !important; text-align: center; box-sizing: border-box; }

  /* Contact: make form and contact-info stack */
  .contact-container { flex-direction: column; align-items: stretch; gap: 18px; }
  .contact-form, .contact-info { width: 100% !important; max-width: 100% !important; }
  .contact-section { padding: 30px 12px; }

  /* Reduce large paddings globally */
  .features, .welcome-container, .card-container { padding-left: 8px; padding-right: 8px; }

  /* Avoid big shadows and heavy effects on mobile for performance */
  .project-card, .card, .feature-card { box-shadow: none !important; }

  /* Ensure the navbar icons remain usable and don't overflow */
  .nav-item { font-size: 18px !important; }

  /* Give body a small bottom padding so last content isn't hidden by fixed navbar */
  body { padding-bottom: 24px; }

  /* Extra small screens - keep logo at start */
  @media (max-width: 480px) {
    .header {
      flex-direction: row !important;
      padding: 10px 15px !important;
      gap: 15px !important;
      height: 60px !important;
      align-items: center !important;
      justify-content: space-between !important;
    }

    .logo {
      height: 35px !important;
      max-width: 120px !important;
      order: 0 !important;
      margin-right: 0 !important;
    }

    .contact-button-container {
      width: 100%;
      display: flex;
      justify-content: center;
    }

    .navbar {
      top: auto !important;
      position: relative !important;
      background: transparent !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      z-index: 1 !important;
    }

    .mainpage {
      padding-top: 120px !important;
      min-height: calc(100vh - 80px) !important;
    }

    /* Services section small mobile centering - perfect center */
    .services-container {
      padding: 15px;
      width: 100%;
      box-sizing: border-box;
    }
    
    .services-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
      margin: 0;
      padding: 0;
    }
    
    .service-card {
      width: 100%;
      margin: 0;
      padding: 16px;
      box-sizing: border-box;
    }

    /* Project cards small mobile centering - perfect center */
    .project-cards-container {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      margin: 0;
      padding: 15px;
      box-sizing: border-box;
    }
    
    .project-card {
      width: 100%;
      margin: 0;
      box-sizing: border-box;
    }
  }
}

/* Contact section: focused mobile tweaks (enhanced visual design) */
@media (max-width: 600px) {
  .contact-section {
    padding: 22px 14px !important;
    text-align: center;
    background-color: #ffffff;
    height: auto !important;
  }

  .contact-title {
    display: block;
    font-size: 1.5rem !important;
    color: #083335 !important;
    margin: 0 auto 8px auto;
    font-weight: 700;
    letter-spacing: 0.2px;
  }

  /* subtle decorative underline instead of long side lines */
  .contact-title::before,
  .contact-title::after { display: none !important; }
  .contact-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 8px auto 0 auto;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(144,189,72,0.95), rgba(49,141,220,0.85));
    box-shadow: 0 6px 18px rgba(49,141,220,0.06);
  }

  .contact-subtitle {
    font-size: 1rem !important;
    margin-top: 6px !important;
    margin-bottom: 10px !important;
    color: #345; 
  }

  .contact-text { margin-top: 8px !important; color: #666; font-size: 0.95rem; }

  .contact-container {
    flex-direction: column !important;
    gap: 14px !important;
    align-items: stretch !important;
    max-width: 720px;
    margin: 0 auto;
  }

  /* Elevate contact-info and form as neat cards */
  .contact-info,
  .contact-form {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px;
    background: #fff;
    padding: 14px !important;
    box-shadow: 0 8px 24px rgba(8,20,30,0.06);
    border: 1px solid rgba(10,10,10,0.03);
  }

  .contact-info { text-align: left; }

  .contact-form { padding: 12px 12px 16px 12px !important; }

  /* Stack form fields vertically and make them roomy */
  .form-row { flex-direction: column !important; gap: 12px !important; }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 1rem !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(20,20,20,0.08) !important;
    border-radius: 10px !important;
    background: #fbfbfd !important;
    box-shadow: none !important;
  }

  .contact-form select {
    padding-right: 50px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23083335'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 16px !important;
    border: 2px solid rgba(144, 189, 72, 0.2) !important;
    box-shadow: 0 2px 8px rgba(8, 51, 53, 0.08) !important;
  }
  
  /* .contact-form select:hover removed - no hover effects on mobile dropdown */

  .contact-form input:focus,
  .contact-form textarea:focus,
  .contact-form select:focus {
    outline: none !important;
    border-color: rgb(144,189,72) !important;
    box-shadow: 0 0 0 6px rgba(144,189,72,0.08) !important;
  }

  /* Big, tappable submit button with gradient */
  #submit-btn {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
    background: linear-gradient(90deg, #90bd48, #3190dc) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 30px rgba(49,141,220,0.12) !important;
  }

  /* Info boxes become rows with clearer spacing */
  .info-box { gap: 12px !important; align-items: flex-start !important; }
  .info-box i { font-size: 20px !important; color: #3190dc !important; }

  /* Social icons row - same style as desktop */
  .social-media-icons { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
  .social-media-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid rgba(144, 189, 72, 0.4);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
  }
  .social-media-icons a i { font-size: 18px; color: white; background: none; padding: 0; }

  /* Ensure no horizontal overflow */
  html, body { overflow-x: hidden; }
}


/* Client welcome specific mobile tweaks */
@media (max-width: 600px) {
  .client-welcomemessage {
    padding: 14px 12px !important;
    display: block !important;
    max-height: none !important;
    background-color: white;
    border: none;
    padding-bottom: 18px;
  }

  /* Hide animated background shapes on small devices for clarity/perf */
  .animated-shapes { display: none !important; }

  .welcome-container { max-width: 100% !important; padding: 0 6px; }

  .welcome-text h1 { font-size: 1.25rem !important; color: #083335; margin-bottom: 8px; }
  .welcome-text p { font-size: 0.95rem !important; color: #444; }
  .welcome-text .cta { font-size: 0.9rem !important; }

  /* Cards: show two across on larger phones, stack on very small screens */
  .card-container { gap: 10px; }
  .card { width: 48% !important; --card-w: 48% !important; }

  @media (max-width: 420px) {
    .card { width: 100% !important; --card-w: 100% !important; }
    .welcome-text h1 { font-size: 1.05rem !important; }
  }

  /* Buttons and CTAs get larger/tappable size */
  .card, .project-info__cta, #submit-btn { padding: 12px 14px !important; font-size: 0.95rem !important; }
}

/* Scroll Navigation Buttons */
.scroll-buttons {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.scroll-btn {
  width: 45px;
  height: 30px;
  border-radius: 25px;
  border: none;
  background: linear-gradient(135deg, rgba(8, 51, 53, 0.95), rgba(20, 69, 58, 0.9));
  border: 1px solid rgba(144, 189, 72, 0.3);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
  transform: translateX(80px);
  backdrop-filter: blur(15px) saturate(120%);
  position: relative;
  overflow: hidden;
}

.scroll-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(144, 189, 72), #4CAF50);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scroll-btn:hover::before {
  opacity: 1;
}

.scroll-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.scroll-btn:hover {
  transform: translateX(-8px) scale(1.05);
  box-shadow: 0 6px 20px rgba(144, 189, 72, 0.5);
  border-color: rgba(144, 189, 72, 0.6);
}

.scroll-btn:active {
  transform: translateX(-4px) scale(0.98);
}

.scroll-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.scroll-btn:hover i {
  transform: scale(1.2);
}

/* Responsive scroll buttons */
@media (max-width: 768px) {
  .scroll-buttons {
    right: 15px;
    gap: 10px;
  }
  
  .scroll-btn {
    width: 40px;
    height: 28px;
    font-size: 12px;
  }
}

/* Magical Cursor Effects */
* {
  cursor: none !important;
}

.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(144, 189, 72, 0.8), rgba(144, 189, 72, 0.3));
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease-out;
  box-shadow: 0 0 20px rgba(144, 189, 72, 0.6);
}

.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(144, 189, 72, 0.4);
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s ease-out;
  box-shadow: 0 0 10px rgba(144, 189, 72, 0.4);
}

.cursor.hover {
  transform: scale(1.5);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(144, 189, 72, 0.6));
  box-shadow: 0 0 30px rgba(144, 189, 72, 0.8);
}

.cursor.click {
  transform: scale(0.8);
  background: radial-gradient(circle, rgba(144, 189, 72, 1), rgba(49, 144, 220, 0.7));
  animation: cursor-click 0.3s ease-out;
}

@keyframes cursor-click {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 10px rgba(144, 189, 72, 0.4);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 40px rgba(144, 189, 72, 1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(144, 189, 72, 0.6);
  }
}

/* Magic particles around cursor */
.magic-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(144, 189, 72, 0.8);
  pointer-events: none;
  z-index: 9997;
  animation: particle-float 2s ease-out forwards;
}

@keyframes particle-float {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--random-x, 0), var(--random-y, 0)) scale(0);
  }
}

/* Glowing trail effect */
.glow-trail {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(144, 189, 72, 0.6);
  pointer-events: none;
  z-index: 9996;
  animation: glow-fade 1s ease-out forwards;
}

@keyframes glow-fade {
  0% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(144, 189, 72, 0.8);
  }
  100% {
    opacity: 0;
    transform: scale(2);
    box-shadow: 0 0 20px rgba(144, 189, 72, 0);
  }
}

/* Special cursor for different elements */
a, button, .nav-item, .feature-card, .service-card, .project-card {
  cursor: none !important;
}

/* Mobile Menu Hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: none !important;
  padding: 0;
  z-index: 1002;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgb(144, 189, 72), #4CAF50);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(8, 51, 53, 0.98), rgba(20, 69, 58, 0.95));
  backdrop-filter: blur(20px) saturate(120%);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(144, 189, 72, 0.1), transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 10px;
  width: 100%;
  max-width: 350px;
}

.mobile-nav-item {
  color: white;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  padding: 18px 35px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(144, 189, 72, 0.4);
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: none !important;
  position: relative;
  overflow: hidden;
  transform: translateY(50px);
  opacity: 0;
  width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(8, 51, 53, 0.2);
}

.mobile-menu-overlay.active .mobile-nav-item {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-item:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-item:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-item:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-item:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav-item:nth-child(6) { transition-delay: 0.6s; }

.mobile-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(144, 189, 72), #4CAF50);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
}

.mobile-nav-item:hover::before {
  opacity: 1;
}

.mobile-nav-item:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(144, 189, 72, 0.8);
  box-shadow: 0 10px 30px rgba(144, 189, 72, 0.4);
}

.mobile-nav-item span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 180px;
  text-align: center;
}

.mobile-nav-item span i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mobile-contact-btn {
  margin-top: 20px;
  padding: 18px 35px;
  background: linear-gradient(135deg, rgb(144, 189, 72), #4CAF50);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: none !important;
  transform: translateY(50px);
  opacity: 0;
}

.mobile-menu-overlay.active .mobile-contact-btn {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.7s;
}

.mobile-contact-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(144, 189, 72, 0.5);
}

/* Mobile cursor optimizations */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar {
    display: none;
  }
  
  .contact-button-container {
    display: none;
  }
  
  /* Show logo on mobile at start (left) */
  .header .logo {
    display: block;
    height: 35px;
    width: auto;
  }
  
  /* Mobile header with logo left and menu right */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    height: 60px !important;
    background: linear-gradient(135deg, rgba(8, 51, 53, 0.95), rgba(20, 69, 58, 0.9));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(144, 189, 72, 0.3);
  }
  
  .mobile-menu-toggle {
    position: relative;
    right: auto;
    width: 35px;
    height: 35px;
    margin-left: auto;
  }
  
  .mobile-menu-toggle span {
    height: 4px;
    background: linear-gradient(90deg, rgb(144, 189, 72), #4CAF50);
    box-shadow: 0 2px 8px rgba(144, 189, 72, 0.3);
  }
  
  .cursor {
    width: 15px;
    height: 15px;
  }
  
  .cursor-trail {
    width: 6px;
    height: 6px;
  }
  
  .magic-particle {
    width: 3px;
    height: 3px;
  }
  
  .glow-trail {
    width: 2px;
    height: 2px;
  }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: all;
}

.floating-whatsapp.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.floating-whatsapp.jump-to-footer {
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.8;
}

.floating-whatsapp a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 28px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: whatsappPulse 2s infinite;
}

.floating-whatsapp a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-whatsapp a:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  animation-play-state: paused;
}

.floating-whatsapp a:hover::before {
  opacity: 1;
}

.floating-whatsapp a:active {
  transform: scale(0.95);
}

@keyframes whatsappPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  }
}

/* Mobile responsive for floating WhatsApp */
@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
  }
  
  .floating-whatsapp a {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
}

