/*
 * Creamy and Squishy Theme for Portfolio
 * A soft, playful design with rounded elements and gentle shadows
 */

:root {
  /* Updated color scheme for creamy feel */
  --primary-color: #f5b461;
  --secondary-color: #e78a55;
  --accent-color: #f1a5b3;
  --light-color: #fff6e9;
  --dark-color: #5d4037;
  --text-color: #6d4c41;
  
  /* Text colors for contrast */
  --orange-text: #5d2f00; /* Darker text on orange backgrounds for better readability */
  
  /* Box shadows for squishy feel */
  --soft-shadow: 0 8px 20px rgba(244, 177, 131, 0.15);
  --pressed-shadow: 0 4px 10px rgba(244, 177, 131, 0.2);
  --float-shadow: 0 15px 35px rgba(244, 177, 131, 0.2);
  
  /* Transitions for squishiness */
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --squish: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base styles */
body {
  background-color: var(--light-color);
  color: var(--text-color);
  transition: background-color 0.5s ease;
  overflow-x: hidden;
}

/* Soft container styles */
.container, .dashboard-card, .card, section {
  border-radius: 20px;
}

/* Squishy buttons with smooth transitions */
.btn {
  border-radius: 50px;
  padding: 10px 25px;
  box-shadow: var(--soft-shadow);
  transition: all 0.4s ease;
  border: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--float-shadow);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--pressed-shadow);
  transition: all 0.1s ease;
}

/* Add subtle background highlight effect */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transition: all 0.6s ease;
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--orange-text);
  border: 1px solid rgba(93, 47, 0, 0.1);
  background-image: linear-gradient(to bottom, var(--primary-color), #f0aa50);
}

.btn-primary:hover {
  background-color: #eda647; /* Slightly darker orange */
  color: var(--orange-text);
  border-color: rgba(93, 47, 0, 0.2);
  background-image: linear-gradient(to bottom, #f9bd6d, #eda647);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--orange-text);
  border: 1px solid rgba(93, 47, 0, 0.1);
  background-image: linear-gradient(to bottom, var(--secondary-color), #e0814c);
}

.btn-secondary:hover {
  background-color: #d67945; /* Slightly darker orange-red */
  color: var(--orange-text);
  border-color: rgba(93, 47, 0, 0.2);
  background-image: linear-gradient(to bottom, #ee9566, #d67945);
}

/* Squishy form elements */
input, textarea, select, .form-control {
  border-radius: 15px;
  border: 2px solid #f0e4d7;
  padding: 12px 20px;
  background-color: #fffaf0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus, .form-control:focus {
  box-shadow: 0 0 0 3px rgba(245, 180, 97, 0.2);
  border-color: var(--primary-color);
  transform: scale(1.01);
}

/* Cards with squishy effect */
.card, .dashboard-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
  border: none;
  overflow: hidden;
  transition: all 0.3s var(--bounce);
}

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

/* Navigation */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(244, 177, 131, 0.1);
  border-radius: 0 0 20px 20px;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
}

.nav-link {
  font-weight: 500;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 10px;
  transition: all 0.3s var(--squish);
}

.nav-link:hover {
  background-color: #fff6e9;
  transform: scale(1.05);
}

/* Section headers */
section h2 {
  position: relative;
  display: inline-block;
}

section h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 10px;
}

/* Mouse gradient element */
.mouse-gradient {
  position: fixed;
  width: 600px;
  height: 600px;
  margin-left: -300px;
  margin-top: -300px;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.8s ease;
  will-change: transform, background;
}

/* Avatar card squishy effects */
.avatar-item {
  transition: all 0.3s var(--squish);
  border-radius: 15px;
  overflow: hidden;
}

.avatar-item:hover {
  transform: scale(1.05);
  box-shadow: var(--float-shadow);
}

/* Footer */
.footer {
  background-color: #ffedd8;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 20px rgba(244, 177, 131, 0.1);
}

.footer-widget h3 {
  color: var(--dark-color);
  font-weight: 600;
}

.footer-widget p, 
.footer-widget a,
.footer-links a,
.contact-info li,
.contact-info a {
  color: #5d3a1e;
  font-weight: 500;
}

.footer-links a:hover,
.contact-info a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Social icons */
.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: #ffffff;
  text-align: center;
  margin: 0 5px;
  box-shadow: var(--soft-shadow);
  transition: all 0.3s var(--squish);
}

.social-icons a:hover {
  transform: translateY(-3px) rotate(10deg);
  background-color: var(--primary-color);
  color: var(--orange-text);
}

/* Styling for FAQ accordions */
.faq-section {
  padding: 60px 0;
}

.faq-section .accordion {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Improved accordion styling */
.accordion-item {
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(244, 177, 131, 0.2);
  box-shadow: 0 2px 10px rgba(244, 177, 131, 0.08);
  background-color: #fff;
  transition: transform 0.2s ease;
}

.accordion-item:hover {
  transform: translateY(-2px);
}

.accordion-button {
  padding: 12px 18px;
  font-weight: 500;
  font-size: 1rem;
  background-color: #fff;
  color: var(--dark-color);
  border: none;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 40px;
}

.accordion-button::after {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f5ad57'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-size: 20px;
}

.accordion-button:not(.collapsed) {
  background-color: #fff6e9;
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(245, 180, 97, 0.15);
  border-color: var(--primary-color);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f27935'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: translateY(-50%) rotate(-180deg);
}

.accordion-body {
  padding: 15px 18px;
  background-color: #fff;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 0.95rem;
  border-top: 1px solid rgba(244, 177, 131, 0.1);
}

/* Fix for contact form checkboxes */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.2rem;
  padding: 10px 15px;
  background-color: rgba(255, 235, 210, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(244, 177, 131, 0.15);
  transition: all 0.2s ease;
}

.form-check:hover {
  background-color: rgba(255, 235, 210, 0.5);
  border-color: rgba(244, 177, 131, 0.3);
}

.form-check-input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 2px solid var(--primary-color);
  background-color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(244, 177, 131, 0.25);
  outline: none;
}

.form-check-label {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark-color);
  cursor: pointer;
  font-weight: 400;
}

/* Fix for "Hire Me" button hover state */
.navbar .btn-primary:hover {
  background-color: #eda647;
  color: var(--orange-text);
  opacity: 1;
}

.footer-bottom p{
	color:#684026;
}