/* Custom Styles for RUGVED AI TECH */

:root {
  --primary-color: #003366;
  --secondary-color: #0066cc;
  --accent-color: #00aaff;
  --light-bg: #f8f9fa;
  --dark-text: #2c3e50;
  --gradient-primary: linear-gradient(135deg, #003366 0%, #0066cc 100%);
  --gradient-secondary: linear-gradient(135deg, #0066cc 0%, #00aaff 100%);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Cards and Sections */
.card {
  border: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-body {
  padding: 2rem;
}

/* Feature Icons */
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,102,204,0.3);
}

.btn-outline-primary {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.navbar-logo {
  width: 100px;
  height: auto;
  max-width: 100%;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color) !important;
  transform: translateY(-2px);
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

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

/* Stats Section */
.stats-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stats-label {
  color: #6c757d;
  font-weight: 500;
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 1rem 0;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}

.form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 20px;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
  outline: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
/* Tablet Styles (768px - 991px) */
@media (max-width: 991px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-section h1 {
    font-size: 2.8rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .timeline::before {
    left: 50%;
    width: 3px;
  }
  
  .timeline-item {
    margin: 2rem 0;
  }
  
  .timeline-content {
    width: 48%;
    padding: 1.5rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before {
    right: -58px;
    left: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -58px;
    right: auto;
  }
  
  .timeline-content::before {
    width: 20px;
    height: 20px;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--secondary-color);
  }
  
  .timeline-content h5 {
    font-size: 1.15rem;
  }
  
  .timeline-content p {
    font-size: 0.98rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
}
}

/* Mobile Styles (up to 767px) */
@media (max-width: 767px) {
  /* Ensure all columns stack on mobile */
  [class*="col-"] {
    margin-bottom: 1rem;
  }
  /* Hero Section */
  .hero-section {
    padding: 50px 0;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 40px 0;
  }
  
  /* Navigation */
  .navbar-logo {
    width: 70px !important;
    height: auto;
  }
  
  .navbar-brand {
    font-size: 1rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
  }
  
  .navbar .container {
    flex-wrap: wrap;
  }
  
  .navbar-toggler {
    order: 2;
  }
  
  .navbar-brand {
    order: 1;
    flex: 1;
    margin-right: 0.5rem;
  }
  
  /* Cards */
  .card-body {
    padding: 1.25rem;
  }
  
  .contact-form {
    padding: 1.5rem !important;
  }
  
  /* Stats Cards */
  .stats-number {
    font-size: 2rem;
  }
  
  .stats-label {
    font-size: 0.9rem;
  }
  
  /* Feature Icons */
  .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .industry-icon {
    font-size: 3rem;
  }
  
  /* Buttons */
  .btn-lg {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* Timeline Mobile - Keep side by side layout */
  .timeline {
    padding: 1.5rem 0;
  }
  
  .timeline::before {
    left: 50%;
    width: 3px;
    background: var(--secondary-color);
  }
  
  .timeline-item {
    margin: 1.75rem 0;
  }
  
  .timeline-content {
    width: 47%;
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before {
    right: -54px;
    left: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -54px;
    right: auto;
  }
  
  .timeline-content::before {
    width: 18px;
    height: 18px;
    background: var(--secondary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--secondary-color);
  }
  
  .timeline-content h5 {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
  }
  
  .timeline-content p {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #555;
  }
  
  /* Forms */
  .form-control,
  .form-select {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
  
  /* Tables */
  .table {
    font-size: 0.85rem;
  }
  
  .table-responsive {
    border: none;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
  
  /* Product Cards */
  .stats-card {
    padding: 1rem;
  }
  
  /* Text Alignment */
  .text-md-start {
    text-align: center !important;
  }
  
  .text-md-end {
    text-align: center !important;
  }
  
  /* Make col-6 full width on small screens */
  .row .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Fix stats cards in two columns on mobile */
  .stats-card {
    margin-bottom: 1rem;
  }
  
  /* Better button spacing on mobile */
  .btn-group,
  .btn + .btn {
    margin-top: 0.5rem;
    margin-left: 0 !important;
  }
  
  /* Fix about page timeline on mobile */
  .card .timeline {
    margin: 1rem 0;
  }
  
  .card .timeline::before {
    left: 15px;
  }
  
  .card .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
    padding: 1rem;
  }
  
  .card .timeline-content::before {
    left: -40px !important;
  }
  
  /* Spacing */
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .mt-4 {
    margin-top: 1.5rem !important;
  }
  
  .mt-5 {
    margin-top: 2rem !important;
  }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
  .hero-section h1 {
    font-size: 1.5rem;
  }
  
  .hero-section .lead {
    font-size: 0.95rem;
  }
  
  .section-padding {
    padding: 30px 0;
  }
  
  .navbar-logo {
    width: 60px !important;
  }
  
  .navbar-brand {
    font-size: 0.85rem;
    white-space: normal;
    word-wrap: break-word;
  }
  
  .navbar .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .stats-number {
    font-size: 1.75rem;
  }
  
  .feature-icon {
    font-size: 1.75rem;
  }
  
  .industry-icon {
    font-size: 2.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.25rem !important;
  }
  
  .btn-lg {
    padding: 8px 16px;
    font-size: 0.9rem;
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .btn-lg.m-2 {
    margin: 0.5rem 0 !important;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h5 {
    font-size: 1.1rem;
  }
  
  .table {
    font-size: 0.75rem;
  }
  
  .table td,
  .table th {
    padding: 0.5rem 0.25rem;
  }
  
  /* Fix col-6 on mobile - make full width */
  .row .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Timeline small mobile - Keep side by side with smaller widths */
  .timeline {
    padding: 1.25rem 0;
  }
  
  .timeline::before {
    left: 50%;
    width: 3px;
  }
  
  .timeline-item {
    margin: 1.5rem 0;
  }
  
  .timeline-content {
    padding: 1rem;
    width: 46%;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before {
    right: -50px;
    left: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -50px;
    right: auto;
  }
  
  .timeline-content::before {
    width: 16px;
    height: 16px;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--secondary-color);
  }
  
  .timeline-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .timeline-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  /* About page timeline fix */
  .about .timeline::before {
    left: 15px;
  }
  
  .about .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }
}

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Industry Cards */
.industry-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.industry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.industry-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* Footer */
.footer {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-color);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
  max-width: 100%;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary-color);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin: 2.5rem 0;
  z-index: 2;
}

.timeline-content {
  background: white;
  border-radius: 15px;
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  width: 45%;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  background: var(--secondary-color);
  border-radius: 50%;
  transform: translateY(-50%);
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--secondary-color);
  z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -68px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -68px;
}

.timeline-content h5 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.timeline-content p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}