/* ========================================================================= 
   RudraAutomation CSS - Modern, Responsive, Clean Business Theme
   ========================================================================= */

/* --- CSS Variables --- */
:root {
  --primary: #0A3161; /* Deep Blue */
  --primary-light: #154D8C;
  --secondary: #E63946; /* Red Accent */
  --secondary-light: #F85A65;
  --accent: #B31942; /* Darker Red */
  --text-dark: #334155;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --danger: #E11D48;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 600;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

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

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1.5rem;
}

.w-100 {
  width: 100%;
}

.subtitle {
  display: block;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 14px rgba(15, 122, 77, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 122, 77, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--secondary);
  transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
  background: transparent;
}

.navbar.scrolled {
  background: white;
  padding: 15px 0;
  box-shadow: var(--shadow-md);
}

.navbar.scrolled .logo a span {
  color: var(--primary);
}

.navbar.scrolled .logo a {
  color: var(--secondary);
}

.navbar.scrolled .nav-links li a {
  color: var(--text-dark);
}

.navbar.scrolled .nav-links li a:hover {
  color: var(--primary);
}

.navbar.scrolled .nav-btn {
  background: var(--primary);
  color: white !important;
  border-radius: 50px;
  padding: 8px 20px;
}

.navbar.scrolled .nav-btn:hover {
  background: var(--secondary);
  color: white !important;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
}

.logo a span {
  color: var(--accent);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links li a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links li a:hover {
  color: var(--accent);
}

.nav-btn {
  border: 2px solid white;
  padding: 8px 20px;
  border-radius: 50px;
}

.nav-btn:hover {
  background: white;
  color: var(--secondary) !important;
}

.mobile-menu-icon {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar.scrolled .mobile-menu-icon {
  color: var(--secondary);
}

/* --- Mobile Menu --- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--secondary);
  z-index: 1001;
  padding: 80px 30px;
  transition: 0.4s ease-in-out;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-nav.active {
  right: 0;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-links li a {
  color: white;
  font-size: 1.1rem;
  display: block;
}

.mobile-links li a:hover {
  color: var(--accent);
}

.mobile-btn {
  margin-top: 10px;
  background: var(--primary);
  padding: 10px 20px;
  border-radius: 50px;
  text-align: center;
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  min-height: 600px;
  background: url('https://images.unsplash.com/photo-1586771107445-d3caec81f95c?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(26,54,93,0.9) 0%, rgba(15,122,77,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  font-weight: 300;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* --- Layout Utilities --- */
/* --- Slider --- */
.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(10,49,97,0.85) 0%, rgba(230,57,70,0.7) 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
}
.slide h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 20px;
}
.slide h1 span {
  color: var(--secondary);
}
.slide p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  font-weight: 300;
  opacity: 0.9;
}
.slider-controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}
.slider-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  background: white;
  transform: scale(1.3);
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white; border: none;
  width: 50px; height: 50px;
  border-radius: 50%; font-size: 1.5rem;
  cursor: pointer; z-index: 10;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--secondary); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.grid {
  display: grid;
  gap: 30px;
}

/* --- About Section --- */
.about-container > div {
  flex: 1;
  min-width: 300px;
}

.mission-vision {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.mv-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  flex: 1;
}

.mv-card i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.mv-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.mv-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-img {
  position: relative;
}

.about-img img {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--secondary);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

.experience-badge span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

/* --- Services Section --- */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, rgba(15,122,77,0.05), rgba(0,180,216,0.05));
  z-index: -1;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  height: 100%;
}

.icon-bg {
  width: 60px;
  height: 60px;
  background: rgba(15, 122, 77, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .icon-bg {
  background: var(--primary);
  color: white;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
}

/* --- Solutions Section --- */
.solutions-container > div {
  flex: 1;
  min-width: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
}

.solution-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.solution-content {
  padding: 30px;
}

.solution-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.solution-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.solution-content ul li {
  margin-bottom: 10px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.solution-content ul li i {
  color: var(--primary);
}

/* --- Achievements Section --- */
.achievements {
  position: relative;
  padding: 100px 0;
  background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  background-attachment: fixed;
  color: white;
  text-align: center;
}

.achievements-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 54, 93, 0.85);
}

.achievements-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.stat-item h3 {
  font-size: 3rem;
  color: white;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 1.1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Products Section --- */
.product-container {
  align-items: center;
}

.product-info {
  flex: 1;
  min-width: 300px;
}

.product-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.product-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.feature-list li {
  margin-bottom: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-list li i {
  background: rgba(15, 122, 77, 0.1);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-mockup {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.mockup-frame {
  width: 250px;
  height: 500px;
  background: var(--text-dark);
  border-radius: 30px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.mockup-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 20px;
  background: var(--text-dark);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 2;
}

.mockup-frame img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* --- Clients Section --- */
.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.client-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(100%);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  color: var(--secondary);
}

/* --- Why Choose Us --- */
.why-us {
  /* No specific bg */
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.feature-item {
  padding: 30px 20px;
  border-radius: 12px;
  background: white;
  transition: var(--transition);
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.f-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(15, 122, 77, 0.3);
}

.feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-container > div {
  flex: 1;
  min-width: 300px;
}

.contact-info .c-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
}

.contact-info .c-item i {
  background: white;
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.contact-info .c-item h4 {
  margin-bottom: 5px;
}

.contact-info .c-item p {
  color: var(--text-muted);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.input-group {
  margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: var(--font-main);
  transition: var(--transition);
  background: var(--bg-light);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(15, 122, 77, 0.1);
}

/* --- Footer --- */
.footer {
  background: var(--secondary);
  color: white;
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-about h3 span {
  color: var(--accent);
  font-weight: 300;
}

.footer-about p {
  color: #CBD5E1;
  margin-bottom: 20px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #CBD5E1;
}

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

.footer-bottom {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94A3B8;
  font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Timeline --- */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 40px 0; }
.timeline::after { content: ''; position: absolute; width: 4px; background: var(--primary); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: var(--secondary); border: 4px solid white; top: 20px; border-radius: 50%; z-index: 1; box-shadow: var(--shadow-md); }
.timeline-item.right::after { left: -10px; }
.timeline-content { padding: 20px 30px; background-color: white; position: relative; border-radius: 12px; box-shadow: var(--shadow-md); transition: var(--transition); border-top: 4px solid var(--secondary); }
.timeline-content:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.timeline-content h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.25rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.95rem; }
.timeline-content .step-num { position: absolute; top: -15px; left: 20px; background: var(--secondary); color: white; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.timeline-item.right .timeline-content .step-num { left: auto; right: 20px; }

/* --- Media Queries --- */
@media screen and (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-container { flex-direction: column; }
  .product-container { flex-direction: column; text-align: center; }
  .feature-list li { justify-content: flex-start; text-align: left; }
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item.right { left: 0; }
  .timeline-item.left::after, .timeline-item.right::after { left: 21px; }
  .timeline-item.right .timeline-content .step-num { left: 20px; right: auto; }
}

@media screen and (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-icon { display: block; font-size: 1.8rem; padding: 5px; cursor: pointer; }
  .hero h1, .slide h1 { font-size: 2.2rem; line-height: 1.3; }
  .hero p, .slide p { font-size: 1rem; margin-bottom: 25px; }
  .page-header { padding: 120px 15px 60px; }
  .section-padding { padding: 50px 15px; }
  .mission-vision { flex-direction: column; }
  .contact-container { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-about p { max-width: 100%; margin: 0 auto 20px; }
  .social-links { justify-content: center; }
  .service-card { padding: 30px 20px; }
  .mobile-links li a { padding: 12px 15px; border-radius: 8px; }
}

@media screen and (max-width: 480px) {
  .hero h1, .slide h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; text-align: center; margin-bottom: 10px; }
  .achievements-grid { grid-template-columns: 1fr; gap: 20px; }
  .slider-controls { bottom: 20px; }
  .slider-btn { width: 40px; height: 40px; font-size: 1.2rem; }
}
