/* ==========================================================================
   Purnima Infosys Solution — Clean Corporate Premium Theme + Curved Glass Header
   ========================================================================== */

/* 1. Global Variables & Color Palette */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-navy: #090d16;
  --color-navy-light: #111827;
  --color-navy-card: #1f2937;
  
  --color-text-navy: #0f172a;
  --color-text-body: #334155;
  --color-text-sub: #94a3b8;
  --color-bg-light: #f8fafc;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* 2. Global Typography & Structure */
body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

.text-navy {
  color: var(--color-text-navy) !important;
}

.bg-navy {
  background-color: var(--color-navy) !important;
}

.bg-light-custom {
  background-color: var(--color-bg-light) !important;
}

.text-primary-custom {
  color: var(--color-primary) !important;
}

.text-primary-accent {
  color: #38bdf8 !important;
}

.text-hero-sub {
  color: #94a3b8 !important;
}

.text-secondary-custom {
  color: #94a3b8 !important;
}

/* 3. Floating Curved Glass Navbar */
.header-floating-wrapper {
  z-index: 1050;
  transition: all 0.3s ease;
}

.glass-header-curved {
  background: rgba(11, 19, 43, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .glass-header-curved {
    border-radius: 20px !important;
  }
}

.nav-link {
  color: #ffffff !important;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.nav-link:hover, .nav-link.active {
  color: #38bdf8 !important;
}

.btn-primary-custom {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.btn-primary-custom:hover {
  background-color: var(--color-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35) !important;
}

.btn-glass-custom {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease !important;
}

.btn-glass-custom:hover {
  background: #ffffff !important;
  color: var(--color-navy) !important;
  transform: translateY(-2px);
}

.btn-outline-primary-custom {
  border: 2px solid var(--color-primary) !important;
  color: var(--color-primary) !important;
  background: transparent !important;
  transition: all 0.3s ease !important;
}

.btn-outline-primary-custom:hover {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* 4. HERO SECTION & 3D ROTATING IT GLOBE */
.hero-section {
  background: #090d16;
  color: #ffffff;
  padding-top: 170px !important;
  padding-bottom: 70px !important;
  position: relative;
}

.hero-glow-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 450px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(9, 13, 22, 0) 70%);
  pointer-events: none;
}

/* 3D Rotating IT Globe Animation */
.it-globe-wrapper {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.it-globe {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateGlobe 35s linear infinite;
}

.globe-sphere {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(14, 165, 233, 0.45);
  box-shadow: inset 0 0 60px rgba(14, 165, 233, 0.25), 0 0 90px rgba(14, 165, 233, 0.2);
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.15), rgba(9, 13, 22, 0.9));
}

.globe-outer-ring {
  width: 490px;
  height: 490px;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(65deg);
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
  animation: spinRing 22s linear infinite;
}

.globe-ring-1 {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateY(70deg);
  border: 1.5px dashed rgba(99, 102, 241, 0.45);
  animation: spinRing2 28s linear infinite reverse;
}

.globe-ring-2 {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(30deg) rotateY(45deg);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.globe-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 15px #38bdf8, 0 0 30px #38bdf8;
}

.node-1 { top: 20%; left: 30%; animation: pulseNode 3s ease-in-out infinite; }
.node-2 { top: 70%; left: 75%; animation: pulseNode 3s ease-in-out 1s infinite; }
.node-3 { top: 40%; left: 80%; animation: pulseNode 3s ease-in-out 1.5s infinite; }
.node-4 { top: 65%; left: 25%; animation: pulseNode 3s ease-in-out 2s infinite; }

@keyframes rotateGlobe {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.04); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes spinRing {
  0% { transform: translate(-50%, -50%) rotateX(65deg) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotateX(65deg) rotate(360deg); }
}

@keyframes spinRing2 {
  0% { transform: translate(-50%, -50%) rotateY(70deg) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotateY(70deg) rotate(360deg); }
}

@keyframes pulseNode {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.6); opacity: 1; }
}

.badge-hero {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-sub {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--color-primary);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero-slider {
  position: relative;
  min-height: 160px;
}

.slider-item {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slider-item.active,
.slider-item:first-child {
  display: block;
  opacity: 1;
}

/* 5. PAGE BANNER FOR INNER PAGES */
.page-banner {
  background: #090d16;
  color: #ffffff;
  padding-top: 170px !important;
  padding-bottom: 60px !important;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-banner h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-banner .breadcrumb {
  font-size: 0.95rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.page-banner .breadcrumb a {
  color: #38bdf8;
  text-decoration: none;
}

.page-banner .breadcrumb a:hover {
  text-decoration: underline;
}

/* Fallback for main when no page banner is present */
main#main > section:first-child:not(.hero-section):not(.page-banner),
main#main > div:first-child:not(.hero-section):not(.page-banner) {
  padding-top: 160px !important;
}

/* 6. CONTACT PAGE CARDS & FORM */
.contact-info-card, .contact-form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-box-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-control-custom {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #0f172a;
  transition: all 0.2s ease;
}

.form-control-custom:focus {
  background-color: #ffffff;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
  outline: none;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  color: #334155;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon-btn:hover {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
  transform: translateY(-3px);
}

/* 7. HERO STATS BAR */
.stat-box {
  padding: 10px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 4px;
}

/* 8. SERVICE CARDS & FEATURES */
.service-card-premium {
  transition: all 0.3s ease;
}

.service-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.icon-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-sm {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hover-lift:hover {
  transform: translateY(-5px) !important;
}

/* 9. DARK MODE OVERRIDES */
[data-theme='dark'] {
  background-color: var(--color-navy) !important;
  color: #cbd5e1 !important;
}

[data-theme='dark'] .glass-header-curved {
  background: rgba(13, 19, 34, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme='dark'] .nav-link {
  color: #cbd5e1 !important;
}

[data-theme='dark'] .text-navy {
  color: #ffffff !important;
}

[data-theme='dark'] .service-card-premium,
[data-theme='dark'] .feature-card,
[data-theme='dark'] .contact-info-card,
[data-theme='dark'] .contact-form-card {
  background-color: #131c31 !important;
  color: #ffffff !important;
}

[data-theme='dark'] .form-control-custom {
  background-color: #0b132b !important;
  border-color: #1e2942 !important;
  color: #ffffff !important;
}

[data-theme='dark'] .bg-light-custom {
  background-color: #0b132b !important;
}
