/* ===== Custom styles that Tailwind can't handle ===== */

/* Container */
.custom-container {
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
  width: 100%;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
body {
  scrollbar-width: thin;
  overflow-x: hidden;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Blue gradient button */
.btn-blue-gradient {
  background: radial-gradient(ellipse at left top, #00A3FF 0%, #0172FF 50%, #0140FF 100%);
  transition: opacity 0.3s ease;
}
.btn-blue-gradient:hover {
  opacity: 0.9;
}

/* Purple gradient button */
.btn-purple-gradient {
  background: radial-gradient(ellipse at left top, #9747FF 0%, #4C44FF 50%, #0140FF 100%);
  transition: opacity 0.3s ease;
}
.btn-purple-gradient:hover {
  opacity: 0.9;
}

/* Service card icon rotation — JS-driven, CSS handles deceleration on unhover */
.card-icon {
  transition: transform 2s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

/* Service card hover — border + shadow use card's unique color */
.service-card {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  border-color: var(--card-color) !important;
  box-shadow: 0 0 25px var(--card-shadow);
}

/* Why-us card hover */
.why-card {
  transition: background-color 0.3s ease;
}
.why-card:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Project card — 3D tilt on hover */
.project-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
}
.project-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}
.project-card:hover img[src*="banner-bg"] {
  transform: scale(1.08);
  transition: transform 4s ease;
}

/* Shimmer sweep on fixed bar button */
.shimmer-sweep {
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.15) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Fixed bar floating */
#fixed-bar.visible {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Social icon hover bounce */
.social-icons a {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-icons a:hover {
  transform: scale(1.25) translateY(-2px);
  opacity: 1 !important;
}

/* Form input focus glow */
#contactForm input:focus,
#contactForm textarea:focus {
  box-shadow: 0 0 0 1px rgba(0, 163, 255, 0.4), 0 0 15px rgba(0, 163, 255, 0.1);
}

/* Navbar scroll state */
#navbar {
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Fixed bar visible state — slide up then float */
#fixed-bar {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#fixed-bar.visible {
  transform: translateY(0);
}

/* Form focus states */
input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.15);
}

/* Mission background - initial state (blurred, faded) */
.mission-bg-img {
  filter: blur(50px);
  opacity: 0.15;
  will-change: filter, opacity;
  transform: translateZ(0); /* force GPU layer */
}

/* Why-us SVG draw animation */
.why-svg {
  opacity: 0;
}

/* Placeholder images - dashed border style (remaining placeholders) */
[data-placeholder] {
  position: relative;
}
[data-placeholder]::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: inherit;
  pointer-events: none;
}
