/* Calorie 7 Custom Styles */

/* Primary Color Variables */
:root {
  --calorie-primary: #D2B48C;
  --calorie-primary-dark: #B89A7A;
  --calorie-primary-light: #E6D4B8;
  --calorie-secondary: #8B4513;
  --calorie-accent: #F4A460;
  --calorie-success: #228B22;
  --calorie-warning: #FF8C00;
  --calorie-danger: #DC143C;
}

/* Header Background with Calorie 7 Theme */
header {
  background: linear-gradient(135deg, var(--calorie-primary) 0%, var(--calorie-primary-dark) 50%, var(--calorie-secondary) 100%);
  position: relative;
  overflow: hidden;
}

header::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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

/* Feature Cards with Calorie Theme */
.feature_card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: white;
  box-shadow: 0 4px 20px rgba(210, 180, 140, 0.1);
}

.feature_card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(210, 180, 140, 0.3);
}

.feature_card .before {
  background: linear-gradient(135deg, var(--calorie-primary) 0%, var(--calorie-primary-dark) 100%);
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.feature_card .icon {
  color: var(--calorie-primary);
  font-size: 3rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature_card:hover .icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--calorie-primary-dark);
}

.feature_card h4 {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--calorie-secondary);
  font-size: 1.3rem;
}

.feature_card p {
  line-height: 1.6;
  color: #666;
  font-size: 0.95rem;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  padding: 80px 0;
}

.about::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(210,180,140,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

/* Download App Section */
.download_app {
  background: linear-gradient(135deg, var(--calorie-primary-light) 0%, var(--calorie-primary) 50%, var(--calorie-primary-dark) 100%);
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.download_app::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, -20px) rotate(180deg); }
}

/* Footer */
footer {
  background-color: #2c3e50;
}

footer * {
  color: white !important;
}

footer a {
  color: white !important;
}

footer a:hover {
  color: var(--calorie-primary-light) !important;
}

footer p {
  color: white !important;
}

footer p.text-secondary {
  color: white !important;
}

footer .text-secondary {
  color: white !important;
}

footer b {
  color: white !important;
}

footer span {
  color: white !important;
}

footer ul li {
  color: white !important;
}

footer ul li a {
  color: white !important;
}

footer ul li a:hover {
  color: var(--calorie-primary-light) !important;
}

/* Footer specific text styling */
footer .footer_links a {
  color: white !important;
}

footer .footer_links a:hover {
  color: var(--calorie-primary-light) !important;
}

/* WhatsApp logo styling */
footer .social a i.fab.fa-whatsapp {
  color: black !important;
  background-color: white;
  border-radius: 50%;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

footer .social a i.fab.fa-whatsapp:hover {
  background-color: var(--calorie-primary-light);
  color: black !important;
}

/* Force all footer text to be white */
footer .line-height {
  color: white !important;
}

footer .line-height.text-secondary {
  color: white !important;
}

/* Override any Bootstrap text color classes in footer */
footer .text-secondary,
footer .text-secondary *,
footer .text-secondary p,
footer .text-secondary span {
  color: white !important;
}

/* Contact Us Button */
.contact_us {
  background-color: var(--calorie-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact_us:hover {
  background-color: var(--calorie-primary-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* App Links */
.app_links {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 30px;
}

/* Center app links only in header */
header .app_links {
  /* justify-content: center; */
}

.app_links img {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  height: 60px;
}

.app_links img:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* Social Icons */
.social a {
  color: var(--calorie-primary);
  font-size: 24px;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.social a:hover {
  color: var(--calorie-primary-dark);
  transform: translateY(-3px);
}

/* Term Cards */
.term_card {
  border-left: 4px solid var(--calorie-primary);
  transition: all 0.3s ease;
}

.term_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(210, 180, 140, 0.2);
}

.term_card i {
  color: var(--calorie-primary);
  font-size: 2rem;
  margin-bottom: 15px;
}

/* Scroll Up Button */
.scrollUp {
  background-color: var(--calorie-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scrollUp:hover {
  background-color: var(--calorie-primary-dark);
  transform: translateY(-3px);
}

/* Loading Animation */
.loader {
  border: 4px solid var(--calorie-primary-light);
  border-top: 4px solid var(--calorie-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact_us {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .scrollUp {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 400;
}

header p {
  font-size: 1.2rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Section Titles */
.features h2,
.about h2,
.download_app h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
}

.features h2::after,
.about h2::after,
.download_app h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--calorie-primary) 0%, var(--calorie-primary-dark) 100%);
  border-radius: 2px;
}

/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(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);
  }
}

.feature_card {
  animation: fadeInUp 0.6s ease-out;
}

.feature_card:nth-child(odd) {
  animation: slideInLeft 0.8s ease-out;
}

.feature_card:nth-child(even) {
  animation: slideInRight 0.8s ease-out;
}

/* Hover Effects */
.feature_card:hover .before {
  background: var(--calorie-primary-dark);
}

.feature_card:hover .icon {
  color: var(--calorie-primary-dark);
  transform: scale(1.1);
}

/* Text Colors */
.text-color {
  color: var(--calorie-secondary) !important;
}

.sub-color {
  color: var(--calorie-primary) !important;
}

/* Button Styles */
.btn-calorie {
  background-color: var(--calorie-primary);
  border-color: var(--calorie-primary);
  color: white;
}

.btn-calorie:hover {
  background-color: var(--calorie-primary-dark);
  border-color: var(--calorie-primary-dark);
  color: white;
}

/* Card Styles */
.card-calorie {
  border-left: 4px solid var(--calorie-primary);
}

.card-calorie:hover {
  box-shadow: 0 5px 15px rgba(210, 180, 140, 0.3);
}
