/* 
=========================================
  SAKSHI TECHNOSOFT - CUSTOM STYLESHEET
  Design Theme: Premium, Luxury, Tech, Minimal
=========================================
*/

/* Google Fonts Import */
@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 {
  /* Color Tokens */
  --primary: #ff0f73;
  --primary-rgb: 255, 15, 115;
  --secondary: #111111;
  --secondary-rgb: 17, 17, 17;
  --accent: #ffffff;
  --gradient-primary: linear-gradient(135deg, #ff0f73 0%, #ff5200 100%);
  --gradient-glow: linear-gradient(135deg, rgba(255, 15, 115, 0.15) 0%, rgba(255, 82, 0, 0.05) 100%);
  --gradient-dark: linear-gradient(180deg, #0e0e0e 0%, #050505 100%);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  
  /* Theme Variables: Dark (Default) */
  --bg-main: #070708;
  --bg-card: rgba(18, 18, 20, 0.7);
  --bg-card-hover: rgba(26, 26, 30, 0.85);
  --text-main: #ffffff;
  --text-muted: #bbbbcc;
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 15, 115, 0.3);
  --navbar-bg: rgba(7, 7, 8, 0.96);
  --shadow-main: rgba(0, 0, 0, 0.6);
  --card-glow: rgba(255, 15, 115, 0.08);
  --grid-line: rgba(255, 255, 255, 0.03);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-main: #f8f9fa;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --text-main: #111111;
  --text-muted: #3a3a42;
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(255, 15, 115, 0.4);
  --navbar-bg: rgba(248, 249, 250, 0.97);
  --shadow-main: rgba(0, 0, 0, 0.05);
  --card-glow: rgba(255, 15, 115, 0.04);
  --grid-line: rgba(0, 0, 0, 0.02);
}

/* General & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  -webkit-font-smoothing: antialiased;
}

/* High Contrast Class Overrides */
.text-muted {
  color: var(--text-muted) !important;
}

p {
  color: var(--text-main);
  opacity: 0.95;
}

p.text-muted {
  color: var(--text-muted) !important;
  opacity: 1;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main) !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary);
}

/* Background Grid Overlay (Linear & Vercel Style) */
.bg-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

.bg-radial-gradient {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 15, 115, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Premium Animated Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #070708;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.loader-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 25px;
  animation: logoPulse 2s infinite ease-in-out;
}

.loader-bar-bg {
  width: 180px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loader-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 10px;
  animation: barFill 2s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

.loader-text {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 15px;
  font-weight: 500;
  opacity: 0.7;
}

@keyframes logoPulse {
  0% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 0px rgba(255, 15, 115, 0)); }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 20px rgba(255, 15, 115, 0.6)); }
  100% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 0px rgba(255, 15, 115, 0)); }
}

@keyframes barFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Custom Interactive Cursor */
.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-circle {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--primary);
  background-color: transparent;
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s, background-color 0.3s;
}

/* Mouse Hover effects on links */
body.cursor-hover .custom-cursor-circle {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 15, 115, 0.1);
  border-color: var(--primary);
}
body.cursor-hover .custom-cursor-dot {
  width: 4px;
  height: 4px;
}

/* Hide on mobile devices */
@media (max-width: 991px) {
  .custom-cursor-dot, .custom-cursor-circle {
    display: none !important;
  }
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(255, 15, 115, 0.5);
}

/* Glassmorphism Sticky Navbar */
.navbar-custom {
  background-color: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
  transition: var(--transition-smooth);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-custom.navbar-scrolled {
  padding: 10px 0;
  box-shadow: 0 10px 30px var(--shadow-main);
  background-color: var(--navbar-bg);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  height: 42px;
  width: auto;
  transition: var(--transition-smooth);
}

.navbar-logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-custom .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main) !important;
  padding: 8px 18px !important;
  position: relative;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-item.active .nav-link {
  opacity: 1;
  color: var(--primary) !important;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 18px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-item.active .nav-link::after {
  width: calc(100% - 36px);
}

/* Theme Switcher Toggle */
.theme-switch-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-switch-btn:hover {
  border-color: var(--primary);
  background-color: rgba(255, 15, 115, 0.05);
  color: var(--primary);
}

/* Mobile Drawer Styles */
.mobile-drawer-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(255, 15, 115, 0.4);
}

.offcanvas-custom {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  border-left: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(15px);
  display: flex !important;
  flex-direction: column !important;
}

.offcanvas-custom .offcanvas-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
}

.offcanvas-custom .nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

/* Premium Buttons & Gradients */
.btn-premium {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-premium-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 15, 115, 0.3);
}

.btn-premium-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 15, 115, 0.5);
  color: #ffffff;
}

.btn-premium-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.6s;
  z-index: -1;
}

.btn-premium-primary:hover::before {
  left: 100%;
}

.btn-premium-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-premium-secondary:hover {
  background: var(--text-main);
  color: var(--bg-main);
  border-color: var(--text-main);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Sticky Contact Actions & Floating Buttons */
.sticky-actions-bar {
  position: fixed;
  right: 20px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  z-index: 998;
}

.floating-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition-spring);
  position: relative;
  margin-bottom: 12px;
}

.sticky-actions-bar .floating-action-btn:last-child {
  margin-bottom: 0;
}

.floating-action-btn:hover {
  transform: scale(1.15) translateY(-3px);
  color: #ffffff;
}

.floating-whatsapp { background-color: #25D366; }
.floating-whatsapp:hover { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }

.floating-call { background-color: #007aff; }
.floating-call:hover { box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4); }

.floating-email { background: var(--gradient-primary); }
.floating-email:hover { box-shadow: 0 8px 25px rgba(255, 15, 115, 0.4); }

.floating-totop {
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-main) !important;
  opacity: 0;
  visibility: hidden;
}
.floating-totop.show {
  opacity: 1;
  visibility: visible;
}
.floating-totop:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
}

/* Tooltip for floating buttons */
.floating-action-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  background-color: var(--secondary);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
}

.floating-action-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Glassmorphism Card (Vercel Style) */
.glass-card {
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow-main);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  z-index: 2;
  transform-style: preserve-3d; /* Support 3D depth layers */
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 15, 115, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
  z-index: -1;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 15px 35px var(--shadow-main), 0 0 25px var(--card-glow);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Card Parallax Depth Layers (Holographic Parallax) */
.glass-card .service-icon-box, 
.glass-card .mb-4.mx-auto {
  transform: translateZ(45px);
  transition: transform 0.2s ease-out;
}

.glass-card h3, 
.glass-card h4,
.career-box h4 {
  transform: translateZ(30px);
  transition: transform 0.2s ease-out;
}

.glass-card p, 
.glass-card ul,
.career-box p,
.career-box .career-meta {
  transform: translateZ(18px);
  transition: transform 0.2s ease-out;
}

.glass-card .btn-premium, 
.glass-card .mt-4,
.glass-card .blog-card-link,
.career-box .btn-premium {
  transform: translateZ(35px);
  transition: transform 0.2s ease-out;
}

/* Glowing text & details */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge-premium {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 50px;
  background-color: rgba(255, 15, 115, 0.08);
  color: var(--primary);
  border: 1px solid rgba(255, 15, 115, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #070708;
}
[data-theme="light"] .hero-wrapper {
  background-color: #ffffff;
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero-tag {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 25px;
  letter-spacing: -0.04em;
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 580px;
}

/* Animated Illustration on Hero */
.hero-illustration {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration-bg {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 15, 115, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  animation: floatBg 8s infinite alternate ease-in-out;
  z-index: 1;
}

.hero-visual-card {
  background: rgba(18, 18, 20, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  position: relative;
  z-index: 5;
  animation: floatCard 6s infinite alternate ease-in-out;
}

[data-theme="light"] .hero-visual-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 25px;
}
.visual-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.visual-dot-red { background-color: #ff5f56; }
.visual-dot-yellow { background-color: #ffbd2e; }
.visual-dot-green { background-color: #27c93f; }

.visual-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition-smooth);
}
[data-theme="light"] .visual-item {
  background: rgba(0, 0, 0, 0.02);
}
.visual-item:hover {
  background: rgba(255, 15, 115, 0.05);
  border-color: rgba(255, 15, 115, 0.3);
}

.visual-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.visual-info {
  flex-grow: 1;
}

.visual-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}
[data-theme="light"] .visual-bar-bg {
  background: rgba(0,0,0,0.06);
}
.visual-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
}

@keyframes floatBg {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(20px, -20px); }
}

@keyframes floatCard {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(1deg); }
}

/* Trusted Companies Infinite Marquee */
.trusted-marquee-wrapper {
  overflow: hidden;
  padding: 30px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  z-index: 10;
}

.trusted-marquee {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
  gap: 60px;
  align-items: center;
}

.trusted-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  opacity: 0.45;
  transition: var(--transition-smooth);
}

.trusted-item:hover {
  opacity: 0.9;
}

.trusted-item i {
  font-size: 1.5rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Service Cards / Interactive Blocks */
.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background: var(--gradient-glow);
  border: 1px solid rgba(255, 15, 115, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 25px;
  transition: var(--transition-spring);
}

.glass-card:hover .service-icon-box {
  background: var(--gradient-primary);
  color: #ffffff;
  transform: rotateY(180deg);
}

/* Statistics Counters Section */
.counter-box {
  text-align: center;
  padding: 20px 10px;
}

.counter-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.counter-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Custom Animated Timeline (Process) */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--glass-border);
  transform: translateX(-50%);
}

.timeline-node {
  position: relative;
  margin-bottom: 60px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 4px solid var(--primary);
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 10px var(--primary);
  transition: var(--transition-smooth);
}

.timeline-node:hover .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
}

.timeline-content {
  width: 45%;
  position: relative;
}

.timeline-node:nth-child(even) .timeline-content {
  margin-left: 55%;
  text-align: left;
}

.timeline-node:nth-child(odd) .timeline-content {
  margin-left: 0;
  text-align: right;
}

@media (max-width: 767px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
    text-align: left !important;
  }
}

/* Technology Marquee (Tech badge clouds) */
.tech-marquee-container {
  padding: 20px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  animation: techMarqueeLeft 30s linear infinite;
  gap: 15px;
}

.tech-marquee-track-reverse {
  display: flex;
  width: max-content;
  animation: techMarqueeRight 30s linear infinite;
  gap: 15px;
}

.tech-badge-card {
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.tech-badge-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--card-glow);
}

.tech-badge-card i {
  color: var(--primary);
  font-size: 1.15rem;
}

@keyframes techMarqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes techMarqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Portfolio Grid & Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.portfolio-filter-btn {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 15, 115, 0.3);
}

.portfolio-grid-item {
  margin-bottom: 30px;
  display: block;
}

.portfolio-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px var(--shadow-main);
  transition: var(--transition-smooth);
  height: 100%;
}

.portfolio-card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 17, 17, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 5;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px var(--shadow-main), 0 0 25px var(--card-glow);
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.1);
}

.portfolio-card-category {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.portfolio-card-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.portfolio-card-link {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portfolio-card-link:hover {
  color: var(--primary);
}

/* Testimonial Cards */
.testimonial-card {
  text-align: left;
  padding: 35px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.testimonial-rating {
  color: #ffb800;
  margin-bottom: 20px;
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 25px;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.testimonial-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.testimonial-designation {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Custom Accordion for FAQ (Razorpay Style) */
.faq-accordion .accordion-item {
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.faq-accordion .accordion-button {
  background-color: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  padding: 20px 25px;
  box-shadow: none;
  font-size: 1.05rem;
  border: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgba(255, 15, 115, 0.03);
}

.faq-accordion .accordion-button::after {
  background-image: none;
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-accordion .accordion-body {
  padding: 20px 25px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--glass-border);
}

/* Forms & Inputs */
.form-group-custom {
  position: relative;
  margin-bottom: 25px;
}

.form-control-custom {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  padding: 16px 20px;
  font-size: 0.95rem;
  width: 100%;
  transition: var(--transition-smooth);
  box-shadow: none;
}

[data-theme="light"] .form-control-custom {
  background: rgba(0, 0, 0, 0.02);
}

.form-control-custom:focus {
  border-color: var(--primary);
  background: rgba(255, 15, 115, 0.02);
  color: var(--text-main);
  outline: none;
  box-shadow: 0 0 15px rgba(255, 15, 115, 0.15);
}

.form-label-custom {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.form-control-custom:focus ~ .form-label-custom,
.form-control-custom:not(:placeholder-shown) ~ .form-label-custom {
  top: -10px;
  left: 15px;
  font-size: 0.75rem;
  padding: 0 8px;
  background-color: var(--bg-main);
  color: var(--primary);
  font-weight: 600;
}

/* Sub-page Header Section */
.subpage-hero {
  padding: 160px 0 85px 0;
  position: relative;
  background-color: #070708;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] .subpage-hero {
  background-color: #ffffff;
}

.subpage-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.03em;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb-custom a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Blog Cards Grid */
.blog-card {
  height: 100%;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-main);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.blog-card-img-wrapper {
  overflow: hidden;
  position: relative;
  height: 200px;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
}

.blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-link {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px var(--shadow-main), 0 0 25px var(--card-glow);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.08);
}

/* Careers (Career Positions) */
.career-box {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
  transform-style: preserve-3d; /* Support 3D depth layers */
}

.career-box:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px var(--card-glow);
}

.career-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.career-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.career-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.career-meta i {
  color: var(--primary);
}

.career-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 404 Page Styling */
.error-page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  background-color: #070708;
}

.error-content-box {
  text-align: center;
  position: relative;
  z-index: 5;
  max-width: 580px;
}

.error-title-huge {
  font-size: 10rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.05em;
  animation: logoPulse 4s infinite alternate ease-in-out;
}

@media (max-width: 767px) {
  .error-title-huge {
    font-size: 6rem;
  }
}

.error-subtitle {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.error-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 35px;
}

/* Premium Footer */
.footer-wrapper {
  background-color: #08080a;
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 30px 0;
  color: #ffffff;
  position: relative;
  z-index: 10;
}
[data-theme="light"] .footer-wrapper {
  background-color: #0d0d10;
}

.footer-info-col img {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.footer-desc {
  color: #a0a0ab;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main) !important;
  font-size: 0.95rem;
  transition: var(--transition-spring);
}

.social-circle:hover {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.08);
}

/* Footer-specific overrides since the footer is always dark */
.footer-wrapper .social-circle {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.footer-wrapper .social-circle:hover {
  background: var(--gradient-primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

.footer-wrapper .form-control-custom {
  background: rgba(255, 255, 255, 0.02) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.footer-wrapper .form-control-custom:focus {
  background: rgba(255, 15, 115, 0.02) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.footer-wrapper .form-control-custom::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Global Form Control Placeholder Color */
.form-control-custom::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Mobile responsive padding for glass-cards */
@media (max-width: 575px) {
  .glass-card {
    padding: 20px 15px;
  }
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  text-transform: uppercase;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 25px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #a0a0ab;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: #8e8e9f !important;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}
.footer-bottom-links a {
  color: #8e8e9f !important;
}
.footer-bottom-links a:hover {
  color: var(--primary) !important;
}

@media (max-width: 767px) {
  .footer-bottom-links {
    justify-content: flex-start;
    margin-top: 15px;
  }
}

/* Global Footer & 404 Page Contrast Overrides for Light/Dark Themes */
.footer-wrapper {
  color: #ffffff !important;
}

.footer-wrapper h1,
.footer-wrapper h2,
.footer-wrapper h3,
.footer-wrapper h4,
.footer-wrapper h5,
.footer-wrapper h6,
.footer-wrapper .footer-title {
  color: #ffffff !important;
}

.footer-wrapper p {
  color: #a0a0ab !important;
}

.footer-wrapper .text-muted {
  color: #a0a0ab !important;
}

[data-theme="light"] .error-page-wrapper {
  background-color: #f8f9fa;
}

/* =========================================
   3D Responsive System Enhancements
========================================= */

/* Option 1: 3D Hover Tilt & Glare Highlight */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, transparent 0%, transparent 100%);
  transition: background 0.1s ease;
}

/* Option 3: 3D Floating Glassmorphic Shapes (Background Layer) */
.floating-shapes-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 15, 115, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.05);
  opacity: 0.12;
  transition: transform 0.1s ease-out, opacity 0.5s ease;
}

[data-theme="light"] .floating-shape {
  border: 1px solid rgba(255, 15, 115, 0.25);
  box-shadow: 0 15px 35px rgba(255, 15, 115, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.4);
  opacity: 0.18;
}

.shape-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 15, 115, 0.18) 0%, rgba(255, 82, 0, 0.04) 100%);
}

.shape-square {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 15, 115, 0.12) 0%, rgba(255, 82, 0, 0.03) 100%);
  transform: rotate(45deg);
}

.shape-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border-width: 25px !important;
  background: transparent;
}

/* Option A: 3D Magnetic Buttons */
.btn-premium-3d {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-premium-3d .btn-content {
  transform: translateZ(10px);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.btn-premium-3d .btn-icon {
  transform: translateZ(20px);
  pointer-events: none;
}

/* Option B: 3D Flip Cards */
.flip-card-3d {
  background-color: transparent;
  perspective: 1200px;
  height: 100%;
  min-height: 380px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}
.flip-card-3d:hover .flip-card-inner,
.flip-card-3d.flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  top: 0;
  left: 0;
}
.flip-card-front {
  z-index: 2;
  transform: rotateY(0deg);
}
.flip-card-back {
  transform: rotateY(180deg);
  z-index: 1;
  background-color: var(--bg-card-hover) !important;
}
.flip-hint {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.fa-spin-slow {
  animation: fa-spin 4s infinite linear;
}

/* Option C: 3D Scroll Perspective Headings */
.scroll-3d-title {
  perspective: 1000px;
  opacity: 0;
  transform: rotateX(-35deg) translate3d(0, 30px, -30px);
  transform-origin: top center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-3d-title.visible {
  opacity: 1;
  transform: rotateX(0deg) translate3d(0, 0, 0);
}

/* Option D: 3D Mobile Mockup Styles */
.phone-3d-wrapper {
  position: relative;
  width: 320px;
  height: 600px;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Floating elements around phone */
.phone-floating-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 1.25rem;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: floatIcon 4s infinite ease-in-out alternate;
}

.icon-chat {
  top: 15%;
  left: -20px;
  animation-delay: 0s;
}

.icon-code {
  bottom: 25%;
  right: -25px;
  color: #007aff;
  animation-delay: 1s;
}

.icon-heart {
  top: 60%;
  left: -30px;
  color: #ff2d55;
  animation-delay: 0.5s;
}

@keyframes floatIcon {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(8deg); }
}

/* Phone Chassis */
.phone-3d-body {
  width: 270px;
  height: 560px;
  border-radius: 40px;
  background: #1e1e24;
  border: 12px solid #000;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 
              inset 0 2px 4px rgba(255,255,255,0.2),
              inset 0 -2px 4px rgba(0,0,0,0.4);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(15deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

[data-theme="light"] .phone-3d-body {
  background: #f1f2f6;
  border: 12px solid #1e1e24;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15), 
              inset 0 2px 4px rgba(255,255,255,0.8);
}

.phone-3d-wrapper:hover .phone-3d-body {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03);
}

/* Notch & Indicators */
.phone-camera-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background: #000;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 100;
}

.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  z-index: 100;
}

[data-theme="light"] .phone-home-indicator {
  background: rgba(0,0,0,0.3);
}

/* Glass Screen Glare */
.phone-screen-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
  z-index: 50;
}

/* Phone Screen Screen Area */
.phone-screen {
  width: 100%;
  height: 100%;
  background: #0d0e12;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .phone-screen {
  background: #fafafc;
}

/* Phone App Navigation Header */
.app-header {
  height: 45px;
  padding: 12px 20px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.app-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

[data-theme="light"] .app-time {
  color: #111;
}

.app-status-icons {
  display: flex;
  gap: 6px;
  font-size: 0.7rem;
  color: #fff;
}

[data-theme="light"] .app-status-icons {
  color: #111;
}

/* App Body Content */
.app-body {
  flex-grow: 1;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo-img {
  width: 22px;
  height: 22px;
}

.app-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-welcome {
  text-align: left;
}

[data-theme="light"] .app-welcome div {
  color: #111 !important;
}

/* App Widgets */
.app-card-widget {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 15px;
  text-align: left;
}

[data-theme="light"] .app-card-widget {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .app-card-widget div {
  color: #111 !important;
}

.app-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-top: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 5px;
}

[data-theme="light"] .app-chart-bars {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.chart-bar {
  flex-grow: 1;
  background: rgba(255, 15, 115, 0.15);
  border-radius: 4px;
  transition: height 0.5s ease;
}

.chart-bar.animate-pulse {
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(255, 15, 115, 0.4);
}

/* List section inside App */
.app-list-section {
  text-align: left;
}

.app-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
}

[data-theme="light"] .app-list-item {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.app-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 0.9rem;
}

.icon-blue { background: #007aff; }
.icon-pink { background: var(--gradient-primary); }

.app-item-info {
  flex-grow: 1;
}

.app-item-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

[data-theme="light"] .app-item-title {
  color: #111;
}

.app-item-subtitle {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
}

[data-theme="light"] .app-item-subtitle {
  color: rgba(0,0,0,0.5);
}

.app-item-status {
  font-size: 0.6rem;
  font-weight: 700;
  color: #27c93f;
  background: rgba(39, 201, 63, 0.15);
  padding: 3px 8px;
  border-radius: 20px;
}

/* Mobile responsive header fit (prevent wrapping of theme switch and menu button) */
@media (max-width: 991px) {
  .navbar-logo span {
    font-size: 1.05rem;
  }
  .navbar-logo img {
    height: 32px;
  }
  .navbar-logo {
    gap: 8px;
  }
  .navbar-custom {
    padding: 8px 0;
  }
  .navbar-custom .container {
    padding-left: 12px;
    padding-right: 12px;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
  }
  .theme-switch-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .mobile-drawer-btn {
    font-size: 1.25rem;
    padding: 0 4px;
  }

  /* Light Theme offcanvas close button fix */
  [data-theme="light"] .offcanvas-custom .btn-close-white {
    filter: none !important;
  }

  /* Light Theme: use dark border on theme-switch-btn so it's visible on white navbar */
  [data-theme="light"] .theme-switch-btn {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.25);
  }

  /* Enforce flat/un-tilted states on mobile/tablet touch screens */
  .glass-card, .career-box, .btn-premium-3d {
    transform: none !important;
  }
  .btn-premium-3d .btn-icon {
    transform: none !important;
  }
  .scroll-3d-title {
    transform: none !important;
    opacity: 1 !important;
  }

  /* 3D Flip Card mobile rollback to responsive block card */
  .flip-card-3d {
    height: auto !important;
    min-height: 0 !important;
    perspective: none !important;
  }
  .flip-card-inner {
    transform: none !important;
    transform-style: flat !important;
    transition: none !important;
  }
  .flip-card-3d:hover .flip-card-inner,
  .flip-card-3d.flipped .flip-card-inner {
    transform: none !important;
  }
  .flip-card-front,
  .flip-card-back {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
  }
  .flip-card-back {
    display: none !important; /* Hide back service cards on mobile/tablet */
  }
  .flip-hint {
    display: none !important;
  }

  /* Hide background shapes to prevent layout overlap & clutter on mobile/tablet */
  .floating-shapes-container {
    display: none !important;
  }
  
  /* Hide phone floating icons on mobile/tablet to avoid horizontal scrolling/overflow */
  .phone-floating-icon {
    display: none !important;
  }

  /* Flatten 3D phone chassis on tablet/mobile */
  .phone-3d-body {
    transform: rotateY(0deg) rotateX(0deg) scale(0.95) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }


  .sticky-actions-bar {
    bottom: 20px !important;
    right: 20px !important;
  }
}

/* Mobile responsive scaling and optimizations for 3D elements */
@media (max-width: 767px) {
  /* Scale down the 3D Phone Mockup to fit inside mobile viewports nicely */
  .phone-3d-wrapper {
    transform: scale(0.8);
    height: 480px;
    margin: -30px 0;
  }
}

@media (max-width: 575px) {
  /* Hide decorative phone mockup entirely on small mobile viewports */
  .phone-3d-wrapper {
    display: none !important;
  }

  /* Scale counter numbers on mobile to prevent overflow */
  .counter-number {
    font-size: 2.6rem;
  }

  /* Reduce padding on counter boxes */
  .counter-box {
    padding: 16px 8px !important;
  }

  /* Tighten spacing on mobile for row layouts to prevent text clipping */
  .row.g-4, .row.g-5 {
    --bs-gutter-x: 1rem !important;
    --bs-gutter-y: 1rem !important;
  }

  /* Reduce padding on hero cards for smaller screens */
  .hero-visual-card {
    padding: 25px 15px;
    border-radius: var(--border-radius-md);
  }

  .hero-illustration-bg {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 379px) {
  /* Scale down counters and display titles further on extremely narrow viewports */
  .counter-number {
    font-size: 2.1rem !important;
  }
  .counter-title {
    font-size: 0.75rem !important;
  }
  .display-font {
    font-size: 2rem !important;
  }
  .hero-title {
    font-size: 2.4rem !important;
  }
}

/* =========================================
   3D Tech Cloud & Hexagonal Grid Layouts
========================================= */
#tech-cloud-container {
  width: 100%;
  max-width: 550px;
  height: 550px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#tech-cloud-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#tech-cloud-canvas:active {
  cursor: grabbing;
}

@media (max-width: 991px) {
  #tech-cloud-container {
    max-width: 450px;
    height: 450px;
  }
}

@media (max-width: 767px) {
  #tech-cloud-container {
    max-width: 380px;
    height: 380px;
  }
}

@media (max-width: 575px) {
  #tech-cloud-container {
    max-width: 290px;
    height: 290px;
  }
}

/* =========================================
   Responsive Headings & Subpage Titles
========================================= */
.subpage-title {
  transition: font-size 0.3s ease;
}

@media (max-width: 991px) {
  .subpage-title {
    font-size: 2.8rem !important;
  }
  h2.display-font, 
  [style*="font-size: 2.8rem"], 
  [style*="font-size: 2.5rem"] {
    font-size: 2.2rem !important;
  }
}

@media (max-width: 575px) {
  .subpage-title {
    font-size: 2.0rem !important;
  }
  h2.display-font, 
  [style*="font-size: 2.8rem"], 
  [style*="font-size: 2.5rem"] {
    font-size: 1.8rem !important;
  }
}

/* Timeline Hexagonal Grid Background */
#hex-grid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

[data-theme="light"] #hex-grid-canvas {
  opacity: 0.18;
}

/* =========================================
   Contact Information Cards Sizing & Glow
========================================= */
.contact-info-card {
  min-height: 96px; /* Uniform height for all contact cards */
  background: rgba(255, 255, 255, 0.01) !important;
  transition: var(--transition-smooth) !important;
  display: flex !important;
  align-items: center !important;
}

.contact-info-card:hover {
  border-color: var(--primary) !important;
  background: rgba(255, 15, 115, 0.02) !important;
  box-shadow: 0 5px 15px var(--card-glow);
}


/* 3D Tilt Team Cards */
.tilt-wrapper {
  perspective: 1500px;
}
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.tilt-content {
  transform: translateZ(60px);
  transform-style: preserve-3d;
}
@media (max-width: 768px) {
  .tilt-card {
    animation: floating3D 6s ease-in-out infinite;
  }
}
@keyframes floating3D {
  0% { transform: translateY(0) rotateX(2deg) rotateY(0deg); }
  50% { transform: translateY(-15px) rotateX(-2deg) rotateY(3deg); }
  100% { transform: translateY(0) rotateX(2deg) rotateY(0deg); }
}


/* 3D Holographic Atom */
.atom-container {
  width: 300px;
  height: 300px;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.atom-3d {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: spinAtom 20s infinite linear;
}

.atom-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 15, 115, 0.5);
  box-shadow: 0 0 20px rgba(255, 15, 115, 0.4), inset 0 0 20px rgba(255, 15, 115, 0.4);
}

.atom-ring-1 { transform: rotateX(60deg) rotateY(0deg); animation: ringRotate1 5s infinite linear; }
.atom-ring-2 { transform: rotateX(60deg) rotateY(60deg); animation: ringRotate2 6s infinite linear; }
.atom-ring-3 { transform: rotateX(60deg) rotateY(120deg); animation: ringRotate3 7s infinite linear; }

.atom-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #ff0f73 0%, transparent 80%);
  border-radius: 50%;
  box-shadow: 0 0 40px 10px #ff0f73;
  animation: pulseCore 2s infinite ease-in-out;
}

@keyframes ringRotate1 { 0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateY(0deg) rotateZ(360deg); } }
@keyframes ringRotate2 { 0% { transform: rotateX(60deg) rotateY(60deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateY(60deg) rotateZ(360deg); } }
@keyframes ringRotate3 { 0% { transform: rotateX(60deg) rotateY(120deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateY(120deg) rotateZ(360deg); } }

@keyframes spinAtom {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes pulseCore {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* 3D Isometric Tech Stack */
.iso-stack-container {
  width: 100%;
  max-width: 400px;
  height: 400px;
  margin: 0 auto;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iso-stack {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateZ(-45deg);
  animation: floatStack 6s ease-in-out infinite;
}

.iso-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.7);
  border: 2px solid rgba(0, 122, 255, 0.5);
  border-radius: 15px;
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 0 15px rgba(0, 122, 255, 0.2) inset,
    -5px 5px 15px rgba(0,0,0,0.4);
  transition: all 0.4s ease;
}

.iso-layer-content {
  transform: rotateZ(45deg) rotateX(-60deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.iso-layer-content i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #007aff;
  filter: drop-shadow(0 0 5px #007aff);
}

.iso-layer--database {
  transform: translateZ(0px);
  border-color: #ff0f73;
  background: rgba(255, 15, 115, 0.15);
}
.iso-layer--database .iso-layer-content i { color: #ff0f73; filter: drop-shadow(0 0 5px #ff0f73); }

.iso-layer--backend {
  transform: translateZ(100px);
  border-color: #00d2ff;
  background: rgba(0, 210, 255, 0.15);
}
.iso-layer--backend .iso-layer-content i { color: #00d2ff; filter: drop-shadow(0 0 5px #00d2ff); }

.iso-layer--frontend {
  transform: translateZ(200px);
  border-color: #007aff;
  background: rgba(0, 122, 255, 0.15);
}

@keyframes floatStack {
  0%, 100% { transform: rotateX(60deg) rotateZ(-45deg) translateZ(0); }
  50% { transform: rotateX(60deg) rotateZ(-45deg) translateZ(20px); }
}

/* Data Particles Flowing */
.iso-data-particle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #00d2ff;
  border-radius: 50%;
  box-shadow: 0 0 15px #00d2ff, 0 0 30px #00d2ff;
  top: 50%;
  left: 50%;
  margin-top: -6px;
  margin-left: -6px;
  transform-style: preserve-3d;
  opacity: 0;
}

.iso-particle-1 { animation: dataFlow 3s infinite 0s; background: #ff0f73; box-shadow: 0 0 15px #ff0f73; }
.iso-particle-2 { animation: dataFlow 3s infinite 1s; }
.iso-particle-3 { animation: dataFlow 3s infinite 2s; background: #007aff; box-shadow: 0 0 15px #007aff; }

@keyframes dataFlow {
  0% { transform: translateZ(0px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateZ(200px); opacity: 0; }
}

/* Hover effect */
.iso-stack-container:hover .iso-layer--database { transform: translateZ(-20px); }
.iso-stack-container:hover .iso-layer--backend { transform: translateZ(100px); }
.iso-stack-container:hover .iso-layer--frontend { transform: translateZ(220px); }
