@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Poppins:wght@300;400;600&display=swap');

:root {
  --primary: #3e2723;
  --primary-hover: #5d4037;
  --accent: #c4a378;
  --bg-light: #fdf8f5;
  --text-dark: #3e2723;
  --text-muted: #8d6e63;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}


/* Hero Section */
#hero-sec {
  background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 40px;
  border-radius: 30px;
  width: 90%;
  max-width: 1000px;
  margin: 80px auto 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  color: white;
}

.left-content {
  flex: 1;
  padding-right: 40px;
}

.left-content p {
  font-size: 1.2rem;
  color: #d7ccc8; /* Lighter muted for dark background */
  margin-bottom: 35px;
}

#hero-sec::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: rgba(196, 163, 120, 0.1);
  border-radius: 50%;
}

#image img {
  height: 300px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  animation: float 6s ease-in-out infinite;
}

#image {
  flex: 1;
  text-align: right;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

#small {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 25px;
  text-align: left;
}

.find-button {
  background: linear-gradient(to right, var(--accent), #d4b58e);
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(196, 163, 120, 0.3);
}

.find-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 163, 120, 0.4);
}

.find-button a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Why Choose Section */
#head {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 60px 0 30px;
  text-align: center;
}

#Box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
}

#Box>div {
  background: white;
  padding: 35px 30px;
  border-radius: 20px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

#Box>div:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--primary);
}

#Box>div .box-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

/* Cards Section */
#sub {
  font-size: 2.5rem;
  margin: 80px 0 40px;
  text-align: center;
}

.cards-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.loading-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  width: 100%;
}

.card {
  background: #FFF8F0;
  /* Very light chocolate */
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.profile {
  display: flex;
  gap: 20px;
  align-items: center;
}

.profile .photo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
  background: #F1F5F9;
}

.profile .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile .details .name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.label {
  font-weight: 600;
  color: var(--text-dark);
}

.btn.secondary {
  text-decoration: none;
  margin-top: 20px;
  width: 100%;
  text-align: center;
  padding: 12px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
}

.btn.secondary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: 80px 0 20px;
  margin-top: 100px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  margin-bottom: 20px;
  object-fit: cover;
  background: white;
}

.footer-logo h2.brand {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--accent);
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links {
  flex: 3;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--accent);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 25px 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* --- General Utility Classes --- */

.avatar-sidebar-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.avatar-sidebar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-muted-no-margin {
    color: var(--text-muted);
    margin-bottom: 0;
}

.container-flush {
    margin-left: 0;
    padding: 0;
}

.centered-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.footer-with-sidebar {
    margin-left: var(--sidebar-w);
}

.profile-avatar-main {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.label-btn-small {
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px 16px;
}

.member-since-box {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #F1F5F9;
}

.weight-600 { font-weight: 600; }
.color-text-dark { color: var(--text-dark); }
.margin-bottom-5 { margin-bottom: 5px; }

.dashboard-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.stat-label-small {
    font-size: 0.8rem;
}

.color-primary { color: var(--primary); }
.color-success { color: #10B981; }
.color-accent { color: var(--accent); }

.avatar-edit-wrapper {
    cursor: pointer;
}

.hidden-input {
    display: none;
}

.text-center {
    text-align: center;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

.margin-top-10 { margin-top: 10px; }
.pointer { cursor: pointer; }
.color-text-muted { color: var(--text-muted); }

/* --- Responsive Styles --- */

@media (max-width: 768px) {
    #hero-sec {
        flex-direction: column;
        padding: 40px 20px;
        margin: 40px auto 20px;
        text-align: center;
    }

    .left-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    #small {
        font-size: 2.2rem;
        text-align: center;
    }

    .left-content p {
        font-size: 1rem;
    }

    #image img {
        height: 200px;
    }

    #image {
        text-align: center;
    }

    #head {
        font-size: 1.8rem;
        margin: 40px 0 20px;
    }

    #sub {
        font-size: 1.8rem;
        margin: 50px 0 30px;
    }

    #Box {
        padding: 0 20px;
        gap: 20px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-links {
        flex: 1;
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #small {
        font-size: 1.8rem;
    }

    .find-button {
        width: 100%;
        padding: 14px 20px;
    }

    .cards-wrap {
        grid-template-columns: 1fr;
    }
}