/* 
 * =========================================================================
 * Style.css - Premium Glassmorphic Design System
 * 1 CRORE PROJECTS - Company Website
 * =========================================================================
 */

/* Root Definitions based on "1 CRORE PROJECTS" Logo */
:root {
  --primary-color: #9ECB2B;        /* Lime Green from the number 1 */
  --primary-rgb: 158, 203, 43;
  --secondary-color: #1E2B58;      /* Deep Royal Navy */
  --secondary-rgb: 30, 43, 88;
  --accent-color: #0088FF;         /* Electric Blue */
  --accent-rgb: 0, 136, 255;
  --pink-accent: #E91E63;          /* Logo Pink Accent */
  --bg-color: #F8FAFC;
  --text-dark: #0F172A;
  --text-light: #F8FAFC;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px 0 rgba(30, 43, 88, 0.08);
  --glow-shadow: 0 0 20px rgba(158, 203, 43, 0.5);
  --card-hover-y: -6px;
  --transition-speed: 0.3s;
}

/* Dark Mode Variables */
html.dark {
  --bg-color: #0B0F19;
  --text-dark: #F8FAFC;
  --text-light: #0F172A;
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --glow-shadow: 0 0 25px rgba(158, 203, 43, 0.6);
}

/* Basic Resets & Scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', '__Inter_f367f3', '__Inter_Fallback_f367f3', 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
  letter-spacing: -0.011em;
}

/* Crisp Sharp Dark Text Contrast Across ALL Pages */
body:not(.dark),
body:not(.dark) p,
body:not(.dark) label,
body:not(.dark) .form-label,
body:not(.dark) .form-control,
body:not(.dark) input,
body:not(.dark) textarea,
body:not(.dark) select {
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Override low contrast text utility classes across all light mode pages (except footer) */
html:not(.dark) main .text-slate-400,
html:not(.dark) main .text-slate-500,
html:not(.dark) main .text-slate-600,
html:not(.dark) main .text-gray-400,
html:not(.dark) main .text-gray-500,
html:not(.dark) main .text-gray-600,
html:not(.dark) main .text-muted {
  color: #1E293B !important;
}

/* Footer Crisp White Text Rule */
footer,
footer p,
footer span,
footer li,
footer div,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  color: #F8FAFC !important;
}

footer a {
  color: #CBD5E1 !important;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #9ECB2B !important;
}

html:not(.dark) h1,
html:not(.dark) h2,
html:not(.dark) h3,
html:not(.dark) h4,
html:not(.dark) h5,
html:not(.dark) h6 {
  color: #0F172A;
}

html.dark .form-label, html.dark label {
  color: #F8FAFC;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', '__Inter_f367f3', '__Inter_Fallback_f367f3', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Top Utility Bar */
.top-bar {
  background: #1E2B58;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  position: relative;
  z-index: 1001;
}

html.dark .top-bar {
  background: #080C14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Infinite Marquee Scroll Keyframes */
@keyframes marquee-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.animate-marquee-left {
  display: flex;
  width: max-content;
  animation: marquee-scroll-left 32s linear infinite;
}

.animate-marquee-right {
  display: flex;
  width: max-content;
  animation: marquee-scroll-right 32s linear infinite;
}

.animate-marquee-left:hover,
.animate-marquee-right:hover {
  animation-play-state: paused;
}

/* Newsletter Floating Animation */
@keyframes newsletter-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-newsletter-float {
  animation: newsletter-float 4s ease-in-out infinite;
}

/* Hide Scrollbars completely for sliders */
#trending-projects-slider::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#trending-projects-slider,
.scrollbar-none {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Sticky Navbar Custom Style */
.sticky-navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(158, 203, 43, 0.2);
  transition: all var(--transition-speed) ease;
}

html.dark .sticky-navbar {
  background: rgba(11, 15, 25, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sticky-navbar.scrolled {
  padding: 0.4rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

html.dark .sticky-navbar.scrolled {
  background: rgba(11, 15, 25, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile Menu Overlay Base Definition */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Glassmorphism Cards & Containers */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow var(--transition-speed) ease,
              border var(--transition-speed) ease;
}

.glass-card:hover {
  transform: translateY(var(--card-hover-y));
  box-shadow: 0 12px 40px 0 rgba(158, 203, 43, 0.2), var(--glass-shadow);
  border-color: rgba(158, 203, 43, 0.5);
}

/* Cursor Glow Effect */
#cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(158, 203, 43, 0.18) 0%, rgba(30, 43, 88, 0.02) 70%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  mix-blend-mode: screen;
  display: none;
}
@media (min-width: 1024px) {
  #cursor-glow {
    display: block;
  }
}

/* Light Glassmorphic Loading Screen (No Black Background) */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

html.dark #page-loader {
  background: rgba(11, 15, 25, 0.96);
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(30, 43, 88, 0.12);
  border-top-color: var(--primary-color);
  border-right-color: var(--accent-color);
  border-radius: 50%;
  animation: loader-spin 0.85s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  margin-top: 1.25rem;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

/* Premium Buttons & Glow */
.btn-glow {
  background: linear-gradient(135deg, #1E2B58 0%, #111A3A 100%);
  color: #fff !important;
  border: 1px solid rgba(158, 203, 43, 0.4);
  font-weight: 600;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 15px rgba(30, 43, 88, 0.4);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 1;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #9ECB2B 0%, #7AA815 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-speed) ease;
}

.btn-glow:hover {
  transform: scale(1.03);
  box-shadow: var(--glow-shadow);
  color: #111111 !important;
}

.btn-glow:hover::after {
  opacity: 1;
}

/* Ripple Button Effect container */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 203, 43, 0.7) 0%, rgba(0, 136, 255, 0.5) 50%, rgba(233, 30, 99, 0.3) 100%);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-animation 0.65s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Sticky Social widgets */
.sticky-actions-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 999;
}

.sticky-action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.sticky-action-btn:hover {
  transform: translateY(-5px) scale(1.1);
  color: #fff;
}

.btn-whatsapp {
  background-color: #25D366;
}

.btn-call {
  background-color: #1E2B58;
}

.btn-enquiry {
  background-color: var(--primary-color);
  color: #111 !important;
}

.btn-scrolltop {
  background-color: #0F172A;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.btn-scrolltop.visible {
  opacity: 1;
  visibility: visible;
}

/* Particle Background Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #1E2B58 0%, #0088FF 50%, #9ECB2B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.dark .text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #0088FF 50%, #9ECB2B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Image Zoom Effect */
.img-zoom-container {
  overflow: hidden;
  border-radius: 12px;
}

.img-zoom {
  transition: transform 0.5s ease;
}

.img-zoom-container:hover .img-zoom {
  transform: scale(1.1);
}

/* Floating Animations */
.floating-element-1 {
  animation: float1 6s ease-in-out infinite;
}

.floating-element-2 {
  animation: float2 8s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) translateX(0deg); }
  50% { transform: translateY(12px) translateX(8px); }
}

/* =========================================================================
 * Creative Domain Section & 3D Glassmorphism Cards
 * ========================================================================= */
.domain-card-creative {
  position: relative;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(30, 43, 88, 0.06);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

html.dark .domain-card-creative {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.domain-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.domain-tech-chip {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(241, 245, 249, 0.9);
  color: #475569;
  border: 1px solid rgba(203, 213, 225, 0.6);
}

html.dark .domain-tech-chip {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.domain-filter-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.domain-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(158, 203, 43, 0.25);
}

.domain-filter-btn.active {
  box-shadow: 0 4px 20px rgba(30, 43, 88, 0.3);
}

/* Infinite Auto Side Scrolling Marquee for Domain Cards - 3D Glassmorphism */
.domain-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.75rem 0;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, transparent 100%);
}

.domain-marquee-track {
  display: flex !important;
  flex-direction: row !important;
  gap: 1.5rem !important;
  width: max-content !important;
  will-change: transform;
}

.marquee-forward {
  animation: marquee-scroll-left 40s linear infinite;
}

.marquee-reverse {
  animation: marquee-scroll-right 40s linear infinite;
}

.domain-marquee-wrapper:hover .domain-marquee-track {
  animation-play-state: paused;
}

.domain-card-marquee {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 330px !important;
  flex-shrink: 0 !important;
  border-radius: 1.5rem !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.85) 100%) !important;
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 1) !important;
  padding: 1.35rem 1.5rem !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 0 10px 30px -10px rgba(30, 43, 88, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  position: relative !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

html.dark .domain-card-marquee {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.75) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.domain-card-marquee::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9ECB2B, #0088FF, #E91E63);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.domain-card-marquee:hover::before {
  opacity: 1;
}

.domain-card-marquee:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(158, 203, 43, 0.5) !important;
  box-shadow: 0 20px 40px -12px rgba(158, 203, 43, 0.25), 0 0 25px rgba(0, 136, 255, 0.15) !important;
}

html.dark .domain-card-marquee:hover {
  border-color: rgba(158, 203, 43, 0.5) !important;
  box-shadow: 0 22px 45px -12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(158, 203, 43, 0.25) !important;
}

