/* IndianSingles Custom Styles */

/* ===== CSS VARIABLES ===== */
:root {
  /* Color System */
  --primary-color: #1e40af;
  --secondary-color: #f97316;
  --accent-color: #dc2626;
  --neutral-dark: #1f2937;
  --neutral-light: #f9fafb;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  
  /* Font System */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  
  /* Spacing System */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== BASE STYLES ===== */
body {
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--neutral-dark);
}

/* ===== COMPONENT STYLES ===== */

/* Introduction Section */
.intro-section {
  padding: 5rem 0;
}

.intro-section h2 {
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.intro-content .lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #1d4ed8, #ea580c);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius-md);
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  transition: all 0.3s ease;
}

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

.card-custom {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease-in-out;
}

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

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-custom {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-title {
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-stats {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.min-vh-75 {
  min-height: 75vh;
}

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

.animate-fade-in[style*="animation-delay: 0.2s"] {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
}

.features-section .section-title {
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.features-section .section-subtitle {
  margin-bottom: 3rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  border-radius: var(--border-radius-lg);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: rgba(30, 64, 175, 0.1);
}

.feature-card .card-body {
  padding: 2rem 1.5rem;
}

.feature-icon {
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
}

.feature-card .card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--neutral-dark);
}

.feature-card .card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #6b7280;
}

/* Testimonial Cards */
.testimonial-card {
  transition: all 0.3s ease;
  border-radius: var(--border-radius-lg);
}

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

.stars i {
  font-size: 1.1rem;
}

/* About Section */
.about-features .feature-item {
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: var(--border-radius-md);
}

.about-features .feature-item:hover {
  background: rgba(30, 64, 175, 0.05);
  transform: translateX(10px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.cta-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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.cta-section .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-buttons {
  margin-bottom: 2rem;
}

.cta-note {
  font-size: 0.95rem;
}

/* Footer Styles */
.footer {
  background: var(--neutral-dark);
}

.footer a {
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Loading animation */
.loading {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.loaded {
  opacity: 1;
}

/* Hover animations */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== PAGE SPECIFIC STYLES ===== */

.section-title {
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 2rem;
  }
  
  .hero-section {
    padding: 6rem 0;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section .lead {
    font-size: 1.2rem;
  }
  
  .hero-stats {
    margin-top: 3rem;
  }
  
  .hero-stats .col-md-3 {
    margin-bottom: 1.5rem;
  }
  
  .about-content {
    text-align: center;
    margin-top: 3rem;
  }
  
  .testimonial-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0;
    text-align: center;
    height: auto;
    min-height: 80vh;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }
  
  .intro-section {
    padding: 4rem 0;
  }
  
  .intro-content p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  
  .intro-content .lead {
    font-size: 1.15rem;
  }
  
  .features-section {
    padding: 4rem 0;
  }
  
  .features-section .section-subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .feature-card .card-body {
    padding: 1.5rem 1.25rem;
  }
  
  .feature-card i {
    font-size: 2.5rem;
  }
  
  .testimonial-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  .about-content {
    text-align: center;
    margin-top: 2rem;
  }
  
  .cta-section {
    padding: 4rem 0;
  }
  
  .cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }
  
  .cta-section .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Mobile First Approach */
@media (max-width: 767.98px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    margin-top: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .section-title::after {
    left: 0;
    transform: none;
  }
  
  .feature-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
  
  .testimonial-card {
    padding: 1.5rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Tablet specific styles will be added */
}

/* Desktop */
@media (min-width: 992px) {
  /* Desktop specific styles will be added */
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section {
    background-attachment: scroll;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-buttons,
  .cta-section,
  footer {
    display: none;
  }
  
  .hero-section {
    background: none;
    color: #000;
  }
  
  .feature-card,
  .testimonial-card {
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}