/* Custom CSS for AgenticIndia About Us Page */

/* Color Variables */
:root {
  --primary-color: #012D61;
  --primary-light: #0056b3;
  --primary-bg: #012D61;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --white: #ffffff;
}

/* Typography */
.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.lh-relaxed {
  line-height: 1.625;
}

/* Primary Color Classes */
.primary-color {
  color: var(--primary-color) !important;
}

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

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.bg-gradient-light {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), #1a4b8c);
  padding:100px 0;
}

/* Particles Animation */
.particles-container {
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: particleFloat 3s infinite ease-in-out;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-100px) scale(1);
    opacity: 1;
  }
}

/* Geometric Shapes */
.geometric-shapes {
  pointer-events: none;
}

.geometric-square {
  top: 80px;
  left: 80px;
  width: 96px;
  height: 96px;
  transform: rotate(45deg);
}

.geometric-circle {
  top: 160px;
  right: 128px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.geometric-triangle {
  bottom: 128px;
  left: 128px;
  width: 80px;
  height: 80px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Animations */
.rotating-slow {
  animation: rotateSlow 20s linear infinite;
}

.rotating-reverse {
  animation: rotateReverse 15s linear infinite;
}

.scaling {
  animation: scaleAnimation 4s ease-in-out infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes scaleAnimation {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Hero Text Effects */
.hero-title {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height:40px;
}

.gradient-text-light {
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #ffffff, #bbdefb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Word Reveal Animation */
.hero-word {
  overflow: visible;
  display: inline-block;
  margin-top:22px;
}
.stat-icon.light {
    background-color: #e5f0ff;
    color: var(--primary-color);
}

.hero-text {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.6, 0, 0.4, 1);
}

.hero-text.animate {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Specific delays for different words */
.hero-section [data-delay="800"] .hero-text {
  transition-delay: 0.8s;
}

.hero-section [data-delay="1400"] .hero-text {
  transition-delay: 1.4s;
}

@keyframes heroTextReveal {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Accent Lines */
.accent-line {
  width: 24px;
  height: 2px;
  top: 50%;
  transform: scaleX(0);
  transition: transform 1s ease-out;
  animation: accentLineReveal 1s ease-out forwards;
  animation-delay: 2.2s;
}

.accent-line.animate {
  transform: scaleX(1);
}

@keyframes accentLineReveal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.accent-line-left {
  left: -32px;
}

.accent-line-right {
  right: -32px;
}

/* CTA Elements */
.cta-circle {
  width: 48px;
  height: 48px;
}

.cta-dot {
  width: 8px;
  height: 8px;
}

.cta-dot-small {
  width: 4px;
  height: 4px;
}

.cta-line {
  height: 1px;
  width: 128px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: scaleX(0);
  transition: transform 1s ease-out;
  animation: ctaLineReveal 1s ease-out forwards;
  animation-delay: 2.5s;
}

.cta-line.animate {
  transform: scaleX(1);
}

@keyframes ctaLineReveal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.cta-text {
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 1s ease-out;
  animation: ctaTextReveal 1s ease-out forwards;
  animation-delay: 3s;
}

.cta-text.animate {
  opacity: 1;
}

@keyframes ctaTextReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Pulse Animation */
.animated-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-dot {
  width: 8px;
  height: 8px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Radial Overlay */
.radial-overlay {
  background: radial-gradient(circle, transparent, rgba(1, 45, 97, 0.5), var(--primary-color));
  pointer-events: none;
}

/* Story Section */
.story-accent {
  left: -16px;
  top: 0;
  width: 4px;
  height: 100%;
}

.story-img {
  height: 256px;
  object-fit: cover;
  width:100%;
}

.story-overlay {
  background: linear-gradient(to top, rgba(1, 45, 97, 0.6), transparent);
}

.stat-icon {
  width: 48px;
  height: 48px;
}

/* Pioneering Section */
.pioneering-bg {
  background: linear-gradient(135deg, var(--primary-color), #2563eb);
}

.shape-blur-1 {
  top: 80px;
  left: 80px;
  width: 256px;
  height: 256px;
  filter: blur(60px);
}

.shape-blur-2 {
  bottom: 80px;
  right: 80px;
  width: 384px;
  height: 384px;
  filter: blur(60px);
}

/* Mission & Vision Cards */
.mission-card {
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
  transition: all 0.5s ease;
}

.vision-card {
  background: linear-gradient(135deg, #f3e5f5, #ffffff);
  transition: all 0.5s ease;
}

.mission-icon {
  width: 56px;
  height: 56px;
}

.vision-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color), #1565c0);
}

/* Why Choose Us Section */
.why-icon {
  width: 64px;
  height: 64px;
  font-size: 32px;
  transition: all 0.3s ease;
}

.why-card {
  transition: all 0.5s ease;
}

/* Footer */
.footer-logo {
  width: 48px;
  height: 48px;
}

/* Hover Effects */
[data-hover="scale"]:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

[data-hover="lift"]:hover {
  transform: translateY(-10px) scale(1.02);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

[data-hover="slideRight"]:hover {
  transform: translateX(10px);
  transition: transform 0.3s ease;
}

[data-hover="rotate"]:hover {
  transform: rotate(5deg);
  transition: transform 0.3s ease;
}

/* Navigation Hover Effects */
.nav-hover {
  position: relative;
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-hover:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.nav-hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-hover:hover::after {
  width: 100%;
}

/* Animation Classes */
[data-animate="fadeIn"] {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

[data-animate="fadeInUp"] {
  opacity: 0;
  transform: translateY(60px);
  animation: fadeInUp 0.8s ease-out forwards;
}

[data-animate="fadeInDown"] {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.6s ease-out forwards;
}

[data-animate="fadeInLeft"] {
  opacity: 0;
  transform: translateX(-60px);
  animation: fadeInLeft 0.8s ease-out forwards;
}

[data-animate="fadeInRight"] {
  opacity: 0;
  transform: translateX(60px);
  animation: fadeInRight 0.8s ease-out forwards;
}

[data-animate="scale"] {
  opacity: 0;
  transform: scale(0);
  animation: scaleIn 0.8s ease-out forwards;
}

[data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

[data-animate="stagger"] > *:nth-child(1) { animation-delay: 0.1s; }
[data-animate="stagger"] > *:nth-child(2) { animation-delay: 0.2s; }
[data-animate="stagger"] > *:nth-child(3) { animation-delay: 0.3s; }
[data-animate="stagger"] > *:nth-child(4) { animation-delay: 0.4s; }
[data-animate="stagger"] > *:nth-child(5) { animation-delay: 0.5s; }

/* Animation Keyframes */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 4rem);
  }
  
  .accent-line {
    display: none;
  }
  
  .cta-line {
    width: 80px;
  }
  
  .cta-text {
    font-size: 0.75rem;
  }
  
  .geometric-shapes {
    display: none;
  }
  
  .story-accent {
    display: none;
  }
  
  .story-content {
    padding-left: 0 !important;
  }
}

/* Custom Bootstrap Overrides */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

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

/* Shadow Effects */
.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.shadow-xl {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

/* Header Backdrop */
.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Brand Animation */
.brand-text {
  transition: all 0.3s ease;
}

.navbar-brand:hover .brand-text {
  transform: scale(1.05);
}

/* Card Animations */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Progress Bar Fix */
.progress {
  height: 1rem;
  background-color: #e9ecef;
  border-radius: 0.375rem;
  overflow: hidden;
  appearance: none;
}

.progress::-webkit-progress-bar {
  background-color: #e9ecef;
  border-radius: 0.375rem;
}

.progress::-webkit-progress-value {
  background-color: var(--primary-color);
  border-radius: 0.375rem;
  transition: width 0.6s ease;
}

.progress::-moz-progress-bar {
  background-color: var(--primary-color);
  border-radius: 0.375rem;
  transition: width 0.6s ease;
}

.progress-animated::-webkit-progress-value {
  background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  0% { background-position: 1rem 0; }
  100% { background-position: 0 0; }
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: var(--primary-color);
  transition: width 0.6s ease;
}

/* Alert Icons */
.alert i {
  font-size: 1.2em;
}

/* Intersection Observer Animation Triggers */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}