/* ========================================
   iTech19 — Custom Styles
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0C0A09;
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 166, 35, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 166, 35, 0.5);
}

/* ---- Keyframe Animations ---- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(245, 166, 35, 0.2); }
  50% { box-shadow: 0 0 40px rgba(245, 166, 35, 0.4); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Hero Animations (Page Load) ---- */

.hero-animate {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}
.hero-animate-1 { animation-delay: 0.1s; }
.hero-animate-2 { animation-delay: 0.22s; }
.hero-animate-3 { animation-delay: 0.34s; }
.hero-animate-4 { animation-delay: 0.46s; }
.hero-animate-5 { animation-delay: 0.58s; }

/* ---- Scroll Reveal Classes ---- */

.reveal-up,
.reveal-fade,
.reveal-scale,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-fade.revealed,
.reveal-scale.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateY(0) scale(1) translateX(0);
}

/* Reveal/Visible pattern (used by service sub-pages) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animate reveal (used by blog posts) */
.animate-reveal {
  animation: fadeInUp 0.7s ease-out forwards;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger-children.revealed > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* ---- Card Hover Effects ---- */

.card-hover {
  transition: all 0.3s ease-out;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(245, 166, 35, 0.1), 0 0 0 1px rgba(245, 166, 35, 0.08);
}

.card-glow {
  transition: all 0.3s ease-out;
  position: relative;
}
.card-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  box-shadow: 0 0 30px rgba(245, 166, 35, 0.15);
  pointer-events: none;
}
.card-glow:hover::after {
  opacity: 1;
}

/* ---- Glass Morphism ---- */

.glass {
  background: rgba(21, 18, 16, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 166, 35, 0.08);
}

.glass-warm {
  background: rgba(28, 25, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 166, 35, 0.06);
}

.glass-card {
  background: rgba(21, 18, 16, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 166, 35, 0.08);
}

/* ---- Noise Texture Overlay ---- */

.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---- Gradient Backgrounds ---- */

.gradient-hero {
  background: radial-gradient(ellipse at 30% 20%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(232, 133, 12, 0.05) 0%, transparent 50%),
              #0C0A09;
}

.gradient-cta {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.12) 0%, rgba(232, 133, 12, 0.06) 50%, rgba(12, 10, 9, 0.9) 100%);
}

.gradient-amber {
  background: linear-gradient(135deg, #F5A623, #E8850C);
}

/* ---- Animated Background Shapes ---- */

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  animation: float 8s ease-in-out infinite;
}

/* ---- Scroll Indicator ---- */

.scroll-indicator {
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* ---- Process Timeline ---- */

.process-line {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.3), rgba(245, 166, 35, 0.1));
}

@media (max-width: 768px) {
  .process-line {
    top: 0;
    left: 28px;
    right: auto;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.3), rgba(245, 166, 35, 0.1));
  }
}

/* ---- Portfolio Mockup Frame ---- */

.mockup-frame {
  background: linear-gradient(180deg, #1C1916 0%, #151210 100%);
  border-radius: 8px;
  padding: 8px 8px 0;
  position: relative;
}
.mockup-frame::before {
  content: '';
  display: block;
  height: 24px;
  background: #1C1916;
  border-radius: 8px 8px 0 0;
  margin: -8px -8px 8px;
  padding: 0 12px;
  background-image: radial-gradient(circle, #3a3530 4px, transparent 4px),
                    radial-gradient(circle, #3a3530 4px, transparent 4px),
                    radial-gradient(circle, #3a3530 4px, transparent 4px);
  background-size: 12px 12px;
  background-position: 12px center, 28px center, 44px center;
  background-repeat: no-repeat;
}

/* ---- WhatsApp Button ---- */

.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease-out;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ---- Navbar ---- */

.nav-scrolled {
  background: rgba(12, 10, 9, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(245, 166, 35, 0.06);
}

/* ---- Star Rating ---- */

.stars {
  color: #F5A623;
  letter-spacing: 2px;
}

/* ---- Blog Card Image Placeholder ---- */

.blog-placeholder {
  background: linear-gradient(135deg, #1C1916, #151210);
  position: relative;
  overflow: hidden;
}
.blog-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.05), rgba(232, 133, 12, 0.02));
}

/* ---- Selection Color ---- */

::selection {
  background: rgba(245, 166, 35, 0.3);
  color: #F5F0EB;
}

/* ---- Focus States ---- */

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #F5A623 !important;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

/* ---- Portfolio Overlay ---- */

.portfolio-overlay {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}
.portfolio-image {
  transition: transform 0.5s ease-out;
}

/* ---- Accordion Icon Rotation ---- */

.accordion-icon {
  transition: transform 0.3s ease-out;
}

/* ---- Responsive helpers ---- */

@media (max-width: 640px) {
  .hero-heading {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-heading {
    font-size: 3.5rem !important;
  }
}
