/* ================= BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f172a;
  color: #fff;
  line-height: 1.7;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at top, #1e293b, #020617);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #020617, #1e293b);
  background-size: 600% 600%;
  animation: gradientBG 20s ease infinite;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero p {
  color: #cbd5f5;
  max-width: 720px;
  margin: 1.5rem 0 2.5rem;
  font-size: 1.1rem;
}

/* ================= HERO PARTICLES ================= */
.hero .particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #6366f1;
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
  filter: blur(2px);
  animation: float 15s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-50px) translateX(30px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 1.5rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}

.navbar .logo {
  background: none; /* remove background box */
  padding: 0;       /* remove extra padding */
}

.navbar .logo img {
  height: 115px;          /* bigger logo */
  width: auto;
  filter: drop-shadow(0 0 15px #22d3ee); /* subtle neon glow */
  transition: transform 0.3s, filter 0.3s;
}

.navbar .logo img:hover {
  transform: scale(2.00);
  filter: drop-shadow(0 0 18px #22d3ee);
}

@keyframes neonGlow {
  0%, 100% { filter: drop-shadow(0 0 10px #22d3ee); }
  50% { filter: drop-shadow(0 0 20px #22d3ee); }
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

/* MOBILE NAVBAR */
.navbar .nav-links {
  flex-direction: column;
  position: fixed;
  top: 70px;
  right: -100%;
  background: rgba(15,23,42,0.95);
  height: 100vh;
  width: 70%;
  gap: 2rem;
  justify-content: flex-start;
  align-items: center;
  padding-top: 2rem;
  transition: right 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.navbar .nav-links.show {
  right: 0;
  opacity: 1;
}

.navbar .nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  transition: 0.3s;
}

.navbar .nav-links li a:hover {
  color: #00e5ff;
}

/* Hamburger button */
.navbar .hamburger {
  display: block;
  cursor: pointer;
  font-size: 1.8rem;
  color: #fff;
}

@media(min-width: 769px) {
  .navbar .hamburger {
    display: none;
  }
  .navbar .nav-links {
    position: static;
    flex-direction: row;
    height: auto;
    width: auto;
    background: none;
    padding: 0;
    opacity: 1;
  }
}

/* ================= BUTTON & CARD GLOW ================= */
.btn {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(99,102,241,0.3);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(99,102,241,0.4);
}

.card, .service-card, .why-card, .portfolio-card, .about-card {
  box-shadow: 0 0 15px rgba(99,102,241,0.2);
  transition: all 0.4s ease;
}

.card:hover, .service-card:hover, .why-card:hover, .portfolio-card:hover, .about-card:hover {
  box-shadow: 0 25px 60px rgba(99,102,241,0.4);
}


/* ================= SECTIONS ================= */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.center {
  text-align: center;
  max-width: 760px;
  margin: auto;
  color: #cbd5f5;
}

/* ================= OUR SERVICES ================= */
/* ================= OUR SERVICES ================= */
.service-card {
  padding: 3.2rem 2.6rem;
  position: relative;
  height: 100%;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(99,102,241,0.2); /* subtle default shadow */
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  transform: translateX(-50%);
  border-radius: 5px;
}

.service-icon {
  font-size: 2.6rem;
  margin-bottom: 1.8rem;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.service-card h3 {
  margin-bottom: 1.1rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}

.service-card p {
  color: #cbd5f5;
  margin-bottom: 1.8rem;
  line-height: 1.75;
  font-size: 0.98rem;
}

.service-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.service-card ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
  color: #e0e7ff;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #22d3ee;
  font-size: 0.85rem;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 0 25px #6366f1,  /* purple neon glow */
    0 0 35px #22d3ee,  /* cyan neon glow */
    0 20px 60px rgba(0,0,0,0.45); /* soft shadow for depth */
}

.service-card:hover .service-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px #22d3ee) drop-shadow(0 0 6px #6366f1);
}

.service-card:hover::before {
  width: 90px;
  transition: width 0.3s ease;
}


/* ================= WHY CHOOSE US ================= */
.why-intro {
  margin-bottom: 4rem;
  color: #cbd5f5;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 3rem;
}

.why-card {
  padding: 3rem 2.5rem;
  text-align: center;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.why-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.why-card p {
  color: #cbd5f5;
  font-size: 0.95rem;
  line-height: 1.7;
}

.why-icon {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.why-card:hover .why-icon {
  transform: scale(1.15);
  transition: 0.3s ease;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

/* ================= PORTFOLIO ================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2.5rem;
}

.portfolio-card {
  background: rgba(255,255,255,0.05);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.portfolio-card img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.portfolio-card img.after {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.portfolio-card:hover img.before {
  opacity: 0;
}

.portfolio-card:hover img.after {
  opacity: 1;
}

.portfolio-info {
  padding: 1.8rem;
}

.portfolio-info h3 {
  margin: 0.6rem 0 1rem;
  font-size: 1.25rem;
  color: #fff;
}

.portfolio-info p {
  color: #cbd5f5;
  font-size: 0.95rem;
  line-height: 1.7;
}

.category {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  padding: 0.35rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}
.portfolio-intro {
  text-align: center;
  max-width: 760px;   /* limits paragraph width */
  margin: 0 auto 3rem auto; /* top 0, left/right auto (center), bottom 3rem */
  color: #cbd5f5;
  font-size: 1.05rem;
  line-height: 1.7;
}


/* ================= FILTER BUTTONS ================= */
.filter-btns {
  text-align: center;
  margin-bottom: 3rem;
}

.filter-btns button {
  background: #1e293b;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  margin: 0 0.4rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btns button.active,
.filter-btns button:hover {
  background: #6366f1;
  box-shadow: 0 10px 25px rgba(99,102,241,0.35);
}



/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 3rem;
  color: #94a3b8;
}

/* ================= ANIMATIONS ================= */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= ABOUT US ================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 2.5rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.about-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.4);
}

.about-icon {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.about-card:hover .about-icon {
  transform: scale(1.15);
}

.about-card h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}

.about-card p {
  color: #cbd5f5;
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .services-grid, .why-grid, .about-grid, .portfolio-grid { gap: 2rem; grid-template-columns: 1fr; }
}

@media(max-width: 480px) {
  .hero { padding: 3rem 1rem; min-height: 80vh; }
  .hero h1 { font-size: 1.6rem; line-height: 1.3; }
  .hero p { font-size: 0.95rem; margin-bottom: 2rem; }
  .btn { width: 100%; padding: 1rem; text-align: center; }
  .portfolio-info h3 { font-size: 1.1rem; }
  .portfolio-info p { font-size: 0.9rem; }
  .service-card, .why-card, .about-card { padding: 2.5rem 2rem; }
  form input, form textarea, form button { width: 100%; }
}
.navbar {
  transition: top 0.3s ease, opacity 0.3s ease;
}
.navbar.hide {
  top: -120px; /* hides navbar above viewport */
  opacity: 0;
}
/* Mobile-friendly filter buttons */
@media(max-width: 480px) {
  .filter-btns {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .filter-btns button {
    flex: 0 0 auto; /* don’t shrink, keep size */
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .filter-btns::-webkit-scrollbar {
    height: 5px;
  }

  .filter-btns::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 10px;
  }

  .filter-btns::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* ================= PORTFOLIO CARD IMAGE SCROLL ON HOVER ================= */
.portfolio-card.web {
  overflow: hidden; /* hide overflowing image */
  position: relative;
  height: 520px; /* fixed height for the card */
}

.portfolio-card.web img {
  width: 100%;
  height: auto;
  transition: transform 7s linear; /* slow smooth scroll */
}

.portfolio-card.web:hover img {
  transform: translateY(-30%); /* scroll image down by 20% */
}
/* ================= PORTFOLIO IMAGE BLUR ON HOVER ================= */
.portfolio-card.web img {
  filter: blur(6px);            /* blurred by default */
  transition: filter 0.4s ease, transform 7s linear; /* combine blur & scroll */
}

.portfolio-card.web:hover img {
  filter: blur(0);              /* remove blur on hover */
  transform: translateY(-30%);  /* keep your scroll effect */
}
/* ================= PREMIUM LOADER ================= */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #020617, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.orbit-loader {
  position: relative;
  width: 220px;
  height: 220px;
  text-align: center;
}

/* LOGO */
.orbit-loader img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 9vw, 90px);
  height: auto;
  display: block;
  z-index: 2;
}
/* ORBIT RING (LIGHTNING FEEL) */
.orbit-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.loader-text {
  position: absolute;
  bottom: -2.2rem; /* outside the center math */
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  letter-spacing: clamp(2px, 0.4vw, 3px);
}
/* PARTICLES */
.loader-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #22d3ee;
  border-radius: 50%;
  box-shadow: 0 0 12px #22d3ee;
  animation: particle-float 4s linear infinite;
}

/* ANIMATIONS */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes particle-float {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  30% { opacity:1; }
  100% { transform: translate(var(--x), var(--y)) scale(1); opacity:0; }
}

.orbit-loader {
  position: relative;
  width: clamp(180px, 45vw, 260px);
  height: clamp(180px, 45vw, 260px);
}

 .loader-text {
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  letter-spacing: clamp(2px, 0.4vw, 3px);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.4); /* add this line */
}

.service-card:hover .service-icon {
  transform: scale(1.15);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  width: 90px;
  transition: width 0.3s ease;
}
.service-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #22d3ee;
  font-size: 0.85rem;
  text-shadow: 0 0 4px #22d3ee, 0 0 10px #22d3ee;
  transition: all 0.3s ease;
}

.service-card:hover ul li::before {
  color: #6366f1;
  text-shadow: 0 0 6px #6366f1, 0 0 15px #6366f1;
}

/* FLOATING SOCIAL BUTTON */
.floating-social {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.social-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow:
    0 0 20px rgba(99,102,241,0.7),
    0 0 40px rgba(34,211,238,0.5);
  transition: all 0.3s ease;
}

.social-toggle:hover {
  transform: scale(1.1);
}

/* Social menu */
.social-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.floating-social:hover .social-menu,
.floating-social:focus-within .social-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.social-menu a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #22d3ee;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 12px rgba(34,211,238,0.5),
    0 0 24px rgba(99,102,241,0.4);
  transition: all 0.3s ease;
}

.social-menu a:hover {
  transform: scale(1.15);
  color: #fff;
  box-shadow:
    0 0 20px rgba(34,211,238,0.9),
    0 0 40px rgba(99,102,241,0.8);
}

/* Mobile safe spacing */
@media (max-width: 480px) {
  .floating-social {
    bottom: 1rem;
    right: 1rem;
  }
}
/* FLOATING SOCIAL */
.floating-social {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Toggle button */
.social-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow:
    0 0 20px rgba(99,102,241,0.7),
    0 0 40px rgba(34,211,238,0.4);
  display: grid;
  place-items: center;
  position: relative;
  animation: pulse 2.5s infinite;
}

.social-toggle img {
  width: 26px;
}

/* Tooltip */
.tooltip {
  position: absolute;
  right: 70px;
  background: #020617;
  color: #e0e7ff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  white-space: nowrap;
}

.social-toggle:hover .tooltip {
  opacity: 0.5;
}

/* Pulse animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.6); }
  70% { box-shadow: 0 0 0 18px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}

/* Social menu */
.social-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.3s ease;
}

.floating-social.active .social-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.social-menu a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 14px rgba(34,211,238,0.5);
  transition: transform 0.25s ease;
}

.social-menu img {
  width: 22px;
}

.social-menu a:hover {
  transform: scale(1.15);
}

/* Hide on scroll */
.floating-social.hide {
  transform: translateY(100px);
  opacity: 0;
}

/* Mobile spacing */
@media (max-width: 480px) {
  .floating-social {
    bottom: 1rem;
    right: 1rem;
  }
}

/* ABOUT SECTION */
.about-section {
  padding: 6rem 2rem;
  background: #0f172a;
  color: #f8fafc;
  text-align: center;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  color: #cbd5f5;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Tabs */
.about-tabs {
  display: inline-flex;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  margin-bottom: 3rem;
}

.about-tab {
  padding: 0.7rem 1.6rem;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: #cbd5f5;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about-tab:hover {
  color: #fff;
}

.about-tab.active {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #fff;
  box-shadow: 0 0 20px rgba(99,102,241,0.6);
}

/* Content */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.tab-panel {
  display: none;
  animation: fadeUp 0.4s ease;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #22d3ee;
}

.tab-panel p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5f5;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 640px) {
  .about-tabs {
    flex-direction: column;
    width: 100%;
    border-radius: 20px;
  }

  .about-tab {
    width: 100%;
    text-align: center;
  }

  .about-section h2 {
    font-size: 2rem;
  }

  .tab-panel h3 {
    font-size: 1.5rem;
  }
}


