/* ===================================
   ADGLOBAL AI - Custom Styles
   =================================== */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ===================================
   Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ===================================
   Brand Gradient Classes
   =================================== */
.gradient-text {
  background: linear-gradient(135deg, #FF7F00 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #FF7F00 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
  border-radius: inherit;
  z-index: -1;
}

/* ===================================
   Button Styles
   =================================== */
.btn-gradient {
  background: linear-gradient(135deg, #FF7F00 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FF4500 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-gradient:hover::before {
  opacity: 1;
}

.btn-gradient > * {
  position: relative;
  z-index: 1;
}

.btn-outline-gradient {
  background: white;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.3s ease;
}

.btn-outline-gradient::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #FF7F00 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
  border-radius: inherit;
  z-index: -1;
}

.btn-outline-gradient:hover {
  background: linear-gradient(135deg, #FF7F00 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
  color: white;
}

/* ===================================
   Card Styles
   =================================== */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card-gradient-border {
  background: white;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.card-gradient-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #FF7F00 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-gradient-border:hover::before {
  opacity: 1;
}

/* ===================================
   Navigation Styles
   =================================== */
.navbar-sticky {
  transition: all 0.3s ease;
}

.navbar-sticky.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* ===================================
   Form Styles
   =================================== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px transparent;
  background-clip: padding-box;
  position: relative;
}

.input-gradient-focus:focus {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.input-gradient-focus:focus::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #FF7F00 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
  border-radius: inherit;
  z-index: -1;
}

/* ===================================
   Animation Classes
   =================================== */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

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

/* ===================================
   Utility Classes
   =================================== */
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.text-gradient {
  background: linear-gradient(135deg, #FF7F00 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tailwind class fix: hover:text-gradient */
.hover\:text-gradient:hover {
  background: linear-gradient(135deg, #FF7F00 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tailwind CDN fix: shadow-card */
.shadow-card {
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

/* Tailwind CDN fix: bg-gradient-brand */
.bg-gradient-brand {
  background: linear-gradient(135deg, #FF7F00 0%, #FF00FF 33%, #800080 66%, #0000FF 100%);
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
    line-height: 1.2;
  }

  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ===================================
   Mobile Menu Animation
   =================================== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
  max-height: 500px;
}

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

/* ===================================
   Logo Gradient Animation (for SVG)
   =================================== */
.logo-gradient stop:nth-child(1) {
  stop-color: #FF7F00;
}

.logo-gradient stop:nth-child(2) {
  stop-color: #FF00FF;
}

.logo-gradient stop:nth-child(3) {
  stop-color: #800080;
}

.logo-gradient stop:nth-child(4) {
  stop-color: #0000FF;
}

/* ===================================
   ✅ ICONS (Reference style + 3X bigger)
   IMPORTANT: HTML me icon wrapper class="icon-box" hona chahiye
   IMPORTANT: body ke start me brandStroke SVG defs hona chahiye
   =================================== */

:root{
  --icon-box-size: 112px;  /* 56px × 2 */
  --icon-svg-size: 56px;   /* 28px × 2 */
}


.icon-box{
  width: var(--icon-box-size);
  height: var(--icon-box-size);
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: all 0.25s ease;
}

.icon-box svg{
  width: var(--icon-svg-size);
  height: var(--icon-svg-size);
  stroke: url(#brandStroke);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* hover */
.card-hover:hover .icon-box{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

/* Mobile scale down */
@media (max-width: 768px){
  :root{
    --icon-box-size: 72px;
    --icon-svg-size: 36px;
  }


}

/* ============================
   AI ROBOTIC HOVER + GLOW UI
============================ */

/* smooth overall */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* cards */
.ai-card{
  position: relative;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background-color .28s ease;
  overflow: hidden;
}

/* scanline overlay */
.ai-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  opacity:0;
  pointer-events:none;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      rgba(255,255,255,.06) 20%,
      transparent 40%,
      rgba(255,255,255,.04) 60%,
      transparent 80%,
      transparent 100%);
  transform: translateY(-40%);
  transition: opacity .25s ease;
}

/* gradient edge glow */
.ai-card::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 18px;
  pointer-events:none;
  opacity:0;
  background: linear-gradient(135deg, rgba(255,127,0,.35), rgba(255,0,255,.25), rgba(0,0,255,.30));
  filter: blur(18px);
  transition: opacity .25s ease;
}

/* hover effect */
.ai-card:hover{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 20px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.08);
  background-color: rgba(255,255,255,.03);
}
.ai-card:hover::before{
  opacity:.8;
  animation: scanMove 1.1s linear infinite;
}
.ai-card:hover::after{
  opacity: .85;
}

/* scan animation */
@keyframes scanMove{
  0%{ transform: translateY(-45%); }
  100%{ transform: translateY(45%); }
}

/* icon styling */
.ai-icon{
  width: 84px;          /* ⬅️ smaller container */
  height: 84px;
  border-radius: 10px; 
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transition: transform .28s ease, border-color .28s ease;
}
.ai-icon svg{
  width: 62px;
  height: 62px;
}
.ai-card:hover .ai-icon{
    transform: translateY(-1px) scale(1.01);
  border-color: rgba(255,255,255,.20);
}

/* button hover - robotic glow */
.btn-gradient{
  transition: transform .18s ease, box-shadow .22s ease;
}
.btn-gradient:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}

/* underline hover */
a.underline:hover{
  opacity: 1;
  text-shadow: 0 0 18px rgba(255,255,255,.25);
}

/* reveal animations (used by JS) */
.ai-reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.ai-reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}
