/* Karma Speaks - Professional Vedic Astrology Platform */
/* Brand Guidelines v1.0 - October 2025 */

:root {
  /* Primary Brand Colors */
  --primary-purple: #392950;          /* Royal Deep Purple */
  --primary-purple-alt: #4D3566;      /* Mystic Purple */
  --primary-purple-mid: #5D4372;      /* Medium Purple (for gradients) */
  --primary-purple-light: #7E5A95;    /* Light Purple (for gradients) */
  
  /* Gold Accents */
  --cosmic-gold: #D4AF37;             /* Primary Gold - Main CTA */
  --soft-gold: #C9A86B;               /* Soft Gold - Subtle accents */
  --brass-gold: #BFA45F;              /* Brass Gold - Hover states */
  
  /* Neutral Colors */
  --charcoal-grey: #2E2E2E;           /* Professional Accent */
  --charcoal-alt: #343A40;            /* Alternative Charcoal */
  --warm-beige: #F7F4EF;              /* Main Background */
  --off-white: #FAF8F2;               /* Alternative Background */
  
  /* Optional Analytical Colors */
  --cosmic-blue: #2C89A0;             /* Charts & Data */
  --cerulean: #35657C;                /* Analytical Elements */
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --text-primary: #2E2E2E;            /* Main Text */
  
  /* Spacing Scale */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 2.5rem;    /* 40px */
  --space-3xl: 3rem;      /* 48px */
  --space-4xl: 4rem;      /* 64px */
  --space-5xl: 5rem;      /* 80px */
  --space-6xl: 7.5rem;    /* 120px */
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-full: 50px;
  
  /* Shadows */
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 25px rgba(0,0,0,0.1);
  --shadow-lg: 0 15px 40px rgba(0,0,0,0.12);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Global Styles */
body {
  font-family: var(--font-body);
  background-color: var(--warm-beige);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

h5, h6 {
  font-family: var(--font-body);
}

/* Top Bar */
.top-bar {
  background: linear-gradient(135deg, var(--charcoal-grey), var(--charcoal-alt)) !important;
  font-size: 0.9rem;
}

.top-bar .text-gold {
  color: var(--cosmic-gold) !important;
}

.top-bar a:hover {
  color: var(--brass-gold) !important;
  transition: color 0.3s ease;
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  color: var(--cosmic-gold) !important;
  font-family: var(--font-heading);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.75rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--cosmic-gold);
}

/* Gold Button - Primary CTA */
.btn-gold {
  background: var(--cosmic-gold);
  border: 2px solid var(--cosmic-gold);
  color: var(--primary-purple) !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  background: var(--brass-gold);
  border-color: var(--brass-gold);
  color: var(--primary-purple) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-gold);
}

.btn-gold:active {
  transform: translateY(-1px) scale(1.02);
}

/* Book Consultation Button Special Styling */
.navbar .btn-gold,
.btn-modern-nav {
  animation: pulse-gold 2s infinite;
  box-shadow: var(--shadow-gold);
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  }
}

/* Brand Text */
.brand-text {
  color: var(--cosmic-gold);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Logo Image */
.logo-img {
  filter: drop-shadow(0 2px 4px rgba(57, 41, 80, 0.2));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991px) {
  .top-bar .col-md-6 {
    text-align: center !important;
    margin-bottom: 0.5rem;
  }
  
  .top-bar .d-flex {
    justify-content: center;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(57, 41, 80, 0.7), rgba(77, 53, 102, 0.6), rgba(0, 0, 0, 0.4)), url('../img/hero-section.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 120px;
  min-height: 100vh;
  position: relative;
}

.hero-section h1 {
  color: var(--cosmic-gold);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-family: var(--font-heading);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.btn-primary {
  background-color: var(--cosmic-gold);
  border-color: var(--cosmic-gold);
  color: var(--primary-purple) !important;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--brass-gold);
  border-color: var(--brass-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-primary {
  color: var(--primary-purple);
  border-color: var(--primary-purple);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-purple);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
}

/* Cards */
.card {
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  color: var(--primary-purple);
  font-weight: 600;
  font-family: var(--font-heading);
}

/* Service Icons */
.service-icon {
  color: var(--cosmic-gold);
}

.price-tag {
  color: var(--cosmic-gold);
  font-weight: 700;
}

/* Feature List */
.feature-item .feature-icon {
  color: var(--cosmic-gold);
  font-size: 1.2rem;
}

.feature-item h5 {
  color: var(--charcoal-grey);
  font-weight: 600;
}

/* Testimonials */
.stars {
  color: var(--cosmic-gold);
}

/* Sections */
.bg-light {
  background-color: var(--off-white) !important;
}

.bg-primary {
  background-color: var(--primary-purple) !important;
}

/* Typography */
.display-4, .display-5 {
  font-weight: 700;
  font-family: var(--font-heading);
}

.text-primary {
  color: var(--primary-purple) !important;
}

/* Social Links */
.social-links a {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--cosmic-gold) !important;
}

/* Footer */
footer {
  background-color: var(--charcoal-grey) !important;
}

footer h5, footer h6 {
  color: var(--cosmic-gold);
  font-family: var(--font-heading);
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--cosmic-gold) !important;
}

/* Footer specific text colors */
footer .text-gold {
  color: var(--cosmic-gold) !important;
}

footer .text-white {
  color: white !important;
}

footer .text-gold:hover {
  color: var(--brass-gold) !important;
}

footer .text-white:hover {
  color: var(--cosmic-gold) !important;
}

/* Footer social links */
footer .social-links a {
  color: var(--cosmic-gold) !important;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  color: var(--brass-gold) !important;
  transform: translateY(-2px);
}

/* Forms */
.form-control {
  border-radius: var(--radius-sm);
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 0.2rem rgba(57, 41, 80, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--charcoal-grey);
}

/* Booking Form */
.booking-form {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* Calendar Styles */
.calendar-container {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Admin Styles */
.admin-sidebar {
  background-color: var(--charcoal-grey);
  min-height: 100vh;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin: 2px 0;
  transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background-color: var(--primary-purple);
  color: white;
}

/* Dashboard Cards */
.dashboard-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
}

.dashboard-stat {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cosmic-gold);
}

/* Tables */
.table {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead {
  background-color: var(--primary-purple);
  color: white;
}

.table thead th {
  border: none;
  font-weight: 600;
  padding: 15px;
}

.table tbody td {
  padding: 15px;
  vertical-align: middle;
  border-color: #f8f9fa;
}

/* Status Badges */
.badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
}

.badge-success {
  background-color: #28a745;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-danger {
  background-color: #dc3545;
}

.badge-info {
  background-color: var(--cosmic-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gold {
  color: var(--cosmic-gold) !important;
}

.bg-gold {
  background-color: var(--cosmic-gold) !important;
}

.border-gold {
  border-color: var(--cosmic-gold) !important;
}

.shadow-soft {
  box-shadow: var(--shadow-sm) !important;
}

.rounded-lg {
  border-radius: var(--radius-md) !important;
}

/* Gradient Classes */
.gradient-hero {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-mid) 50%, var(--primary-purple-light) 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, var(--soft-gold), var(--brass-gold));
}

.gradient-charcoal {
  background: linear-gradient(135deg, var(--charcoal-grey), var(--charcoal-alt));
}

/* Print Styles */
@media print {
  .navbar, .footer, .btn {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  .container {
    max-width: none !important;
  }
}

/* Logo Styles */
.logo-img {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(57, 41, 80, 0.2));
}

.logo-img:hover {
  transform: scale(1.05);
}

.brand-text {
  color: var(--cosmic-gold);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
}

/* Logo responsive adjustments */
@media (max-width: 768px) {
  .logo-img {
    height: 40px !important;
  }
  
  .brand-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .logo-img {
    height: 35px !important;
  }
  
  .brand-text {
    font-size: 1rem;
  }
}

/* Logo in different contexts */
.navbar-brand .logo-img {
  max-height: 52px;
  width: auto;
}

.admin .navbar-brand .logo-img {
  max-height: 35px;
  width: auto;
}

/* Logo in footer */
.footer-logo {
  max-height: 50px;
  width: auto;
  margin-bottom: 15px;
}

/* Astrological Images Styling */
.hero-astrology-image {
  max-height: 400px;
  width: auto;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.hero-astrology-image:hover {
  transform: scale(1.02);
}

.zodiac-dial-image {
  max-height: 300px;
  width: auto;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
  filter: brightness(1.05) contrast(1.1);
}

.zodiac-dial-image:hover {
  transform: scale(1.03);
}

.celestial-image {
  max-height: 250px;
  width: auto;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
  filter: brightness(1.1) contrast(1.15);
}

.celestial-image:hover {
  transform: scale(1.03);
}

/* Image containers */
.zodiac-dial-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.zodiac-dial-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.zodiac-dial-container:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Master Image Styling */
.master-image {
  max-height: 400px;
  width: auto;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
  filter: brightness(1.05) contrast(1.1);
}

.master-image:hover {
  transform: scale(1.02);
}

.master-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.master-image-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.master-image-container:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

/* Responsive adjustments for astrological images */
@media (max-width: 768px) {
  .hero-astrology-image {
    max-height: 300px;
  }
  
  .zodiac-dial-image {
    max-height: 200px;
  }
  
  .celestial-image {
    max-height: 180px;
  }
  
  .master-image {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .hero-astrology-image {
    max-height: 250px;
  }
  
  .zodiac-dial-image {
    max-height: 150px;
  }
  
  .celestial-image {
    max-height: 150px;
  }
  
  .master-image {
    max-height: 250px;
  }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

/* Service Card Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

/* Feature Card Hover Effects */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

/* Button Hover Effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Testimonial Card Hover Effects */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for hero stats */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats .stat-item {
    animation: countUp 0.8s ease-out forwards;
}

.hero-stats .stat-item:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-stats .stat-item:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-stats .stat-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Wheel Rotation Animation - Slower and Fixed Position */
.wheel {
    -webkit-animation: spin 15s linear infinite;
    animation: spin 15s linear infinite;
    transform-origin: center center;
    position: relative;
    display: block;
    margin: 0 auto;
}

/* for Safari browser */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Image Container - Fixed Position */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 20px;
    overflow: hidden;
}

/* Ensure image stays centered and doesn't move */
.hero-main-image {
    position: relative;
    transform-origin: center center;
}

/* Responsive Hero Image */
@media (max-width: 768px) {
    .hero-main-image {
        max-width: 100% !important;
        margin: 0 auto;
    }
}
