/* Ishika Infotech - Core Premium Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Font Family definitions */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color Theme Tokens (Light Mode defaults) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(255, 255, 255, 0.4);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --primary: #2563eb;       /* Blue */
  --secondary: #7c3aed;     /* Purple */
  --accent: #06b6d4;        /* Cyan */
  --primary-rgb: 37, 99, 235;
  --secondary-rgb: 124, 58, 237;
  --accent-rgb: 6, 182, 212;

  --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
  --gradient-glow: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.15));
  
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 0 1px 0 rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.15), 0 0 1px 0 rgba(37, 99, 235, 0.2);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --nav-height: 80px;
}

[data-theme="dark"] {
  /* Dark Mode tokens */
  --bg-primary: #090d16;
  --bg-secondary: #0f1422;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --gradient-glow: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(var(--secondary-rgb), 0.25));
  --card-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.5), 0 0 1px 0 rgba(255, 255, 255, 0.1);
  --card-shadow-hover: 0 25px 50px -12px rgba(124, 58, 237, 0.3), 0 0 1px 0 rgba(124, 58, 237, 0.4);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden !important;
  max-width: 100%;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  transition: color 0.4s ease;
}

/* Gradient text */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-main {
  color: var(--text-main) !important;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  transition: var(--transition);
}

.glass-panel:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.25);
}

/* Navigation Bar */
.navbar {
  min-height: var(--nav-height);
  padding: 12px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
  z-index: 1050;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  min-height: 70px;
  padding: 8px 0;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted) !important;
  margin: 0 8px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 70%;
}

/* Theme Switcher Button */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

/* Custom Cursor Follower */
.mouse-follower {
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
  mix-blend-mode: difference;
}

.mouse-follower.hovering {
  width: 48px;
  height: 48px;
  background-color: rgba(var(--primary-rgb), 0.2);
  border-color: var(--accent);
}

/* Hero Section */
.hero-sec {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 40px);
  display: flex;
  align-items: center;
  overflow: hidden !important;
  background: radial-gradient(circle at 10% 20%, var(--gradient-glow) 0%, transparent 60%);
}

.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Animated 3D Floating Shapes */
.floating-shape {
  position: absolute;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.45;
  animation: floatAround 25s infinite linear;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: 20%;
  right: 10%;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: 15%;
  left: 5%;
  animation-duration: 35s;
  animation-direction: reverse;
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 10%;
  left: 30%;
  animation-duration: 40s;
}

/* Premium Buttons */
.btn-premium {
  position: relative;
  background: var(--gradient-main);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.btn-premium:hover::before {
  opacity: 1;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.btn-premium-outline {
  background: transparent;
  color: var(--text-main) !important;
  border: 2px solid var(--border-glass);
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 50px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-premium-outline:hover {
  background: var(--gradient-main);
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Services Cards styling */
.service-card {
  padding: 40px 30px;
  text-align: left;
  border-radius: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card .icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.75rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .icon-wrapper {
  background: var(--gradient-main);
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
}

/* About counter columns */
.counter-box {
  padding: 20px;
  text-align: center;
}

.counter-num {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Portfolio grid filters */
.portfolio-filter-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 30px;
  margin: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-filter-btn.active, .portfolio-filter-btn:hover {
  background: var(--gradient-main);
  color: #ffffff;
  border-color: transparent;
}

.portfolio-item-card {
  overflow: hidden;
  border-radius: 18px;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.portfolio-item-card img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.portfolio-item-card:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.2));
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: var(--transition);
}

.portfolio-item-card:hover .portfolio-overlay {
  opacity: 1;
}

/* Process Timeline (6 steps layout) */
.timeline-container {
  position: relative;
  padding: 40px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--gradient-glow);
  transform: translateX(-50%);
}

.timeline-row {
  display: flex;
  position: relative;
  margin-bottom: 50px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 15px var(--primary);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  padding: 30px;
  border-radius: 16px;
}

.timeline-row:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-row:nth-child(odd) .timeline-content {
  margin-right: auto;
  text-align: right;
}

.timeline-row:nth-child(even) .timeline-content {
  margin-left: auto;
  text-align: left;
}

/* Timeline Responsive mobile adjustments */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-content {
    width: 90%;
    margin-left: 50px !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  .timeline-row {
    flex-direction: row !important;
  }
}

/* Pricing Grid Cards */
.pricing-card {
  padding: 40px;
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.pricing-card.popular .badge-popular {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-main);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Testimonial slider */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  padding: 30px;
}

/* Contact form custom inputs */
.form-control-custom {
  background: rgba(var(--primary-rgb), 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 10px;
  padding: 14px;
  transition: var(--transition);
}

.form-control-custom:focus {
  background: var(--bg-primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
  color: var(--text-main);
}

/* Floating contact widgets */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-widget:hover {
  transform: scale(1.1) rotate(5deg);
  color: #ffffff;
}

/* Floating Custom Chat Window Widget */
.chat-widget-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  font-family: var(--font-body);
}

.chat-bubble {
  width: 55px;
  height: 55px;
  background: var(--gradient-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.chat-bubble:hover {
  transform: scale(1.1);
}

.chat-window {
  width: 320px;
  height: 400px;
  position: absolute;
  bottom: 70px;
  left: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition);
}

.chat-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.chat-header {
  background: var(--gradient-main);
  color: white;
  padding: 15px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.chat-footer {
  padding: 10px;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  display: flex;
}

.chat-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.chat-msg.bot {
  background: var(--bg-secondary);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.chat-msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

/* Infinite Logo Slider */
.logo-slider {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  padding: 40px 0;
  background: var(--bg-secondary);
  position: relative;
}

.logo-slider-track {
  display: flex;
  width: calc(250px * 14);
  animation: logoScroll 20s linear infinite;
}

.logo-slide {
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: var(--text-light);
  font-weight: 700;
  opacity: 0.6;
  transition: var(--transition);
}

.logo-slide:hover {
  opacity: 1;
}

/* Interactive Card checkout animations */
.card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 30px;
  height: 220px;
}

.credit-card-container {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.credit-card-container.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #7c3aed 100%);
}

.card-face.back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Animations Keyframes */
@keyframes floatAround {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 7)); }
}

/* Scroll indicators, back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 90px;
  width: 45px;
  height: 45px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--card-shadow);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
  transform: translateY(-5px);
}

/* ==========================================================================
   Mobile Responsiveness Overrides
   ========================================================================== */

@media (max-width: 991.98px) {
  :root {
    --nav-height: 70px;
  }
  
  .navbar-collapse {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
  }
  
  .hero-sec {
    padding-top: calc(var(--nav-height) + 20px);
    min-height: auto;
    padding-bottom: 60px;
  }
  
  .hero-sec h1 {
    font-size: 2.4rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .floating-shape {
    display: none !important; /* Hide floating shapes to prevent layout shifting on mobile */
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  .pricing-card.popular {
    transform: none; /* Reset scaling on tablet/mobile screens */
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 40px 0 !important;
  }
  
  .counter-box {
    padding: 10px;
  }
  
  .counter-num {
    font-size: 2.2rem;
  }
  
  .testimonial-slide {
    padding: 10px;
  }
  
  .chat-widget-container {
    bottom: 20px;
    left: 20px;
  }
  
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 80px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575.98px) {
  .hero-sec h1 {
    font-size: 1.75rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  #typing-text {
    display: inline-block;
    min-height: 2.2em; /* Reserve vertical space to avoid layout shifts on mobile */
    width: 100%;
  }
  
  .pricing-card {
    padding: 25px;
  }
  
  .chat-window {
    width: 280px;
    height: 350px;
    bottom: 60px;
  }
  
  .card-wrapper {
    height: 180px;
  }
  
  .card-face {
    padding: 15px;
  }
  
  #mock-number {
    font-size: 1.1rem !important;
  }
}

