:root {
    --primary-color: #0a4b33;
    --secondary-color: #c59b6c;
    --accent-color: #d4af37;
    --light-bg: #f9f5ef;
    --dark-green: #0e3829;
    --text-dark: #1e2b2c;
    --text-light: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar-bd {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0e5a3e 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.navbar-bd .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-bd .brand-bn {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 400;
}

.navbar-bd .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.navbar-bd .nav-link:hover,
.navbar-bd .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Button Styles */
.btn-gold {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b58450 100%);
    color: white;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(197, 155, 108, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b58450 0%, #9a6f40 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 155, 108, 0.4);
}

.btn-outline-gold {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 8px 25px;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f3eee9 0%, #fffbf4 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(197, 155, 108, 0.1);
    border-radius: 50%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--secondary-color);
    display: block;
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(10, 75, 51, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-card .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 50px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(197, 155, 108, 0.25);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 75, 51, 0.1);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0e5a3e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
    background: var(--secondary-color);
}

/* Profile Cards */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.1;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 75, 51, 0.15);
    border-color: var(--secondary-color);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    margin: 0 auto 15px;
    position: relative;
    z-index: 1;
}

.verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

/* Section Headings */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b58450 100%);
    border-radius: 4px;
}

/* Success Story Card */
.story-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 75, 51, 0.15);
}

.story-image {
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.story-content {
    padding: 20px;
}

/* Footer */
.footer-bd {
    background: linear-gradient(135deg, var(--dark-green) 0%, #0a4b33 100%);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-bd h5, .footer-bd h6 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-bd a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-bd a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-green);
    transform: translateY(-3px);
}

/* Alert Messages */
.alert {
    border-radius: 15px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .navbar-bd .navbar-brand {
        font-size: 1.2rem;
    }
    
    .profile-card {
        margin-bottom: 20px;
    }
}

/* Profile Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Chat Interface */
.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    display: flex;
    margin-bottom: 15px;
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 20px;
    position: relative;
}

.message.sent .message-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0e5a3e 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.received .message-content {
    background: #f0f0f0;
    color: var(--text-dark);
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
}

.chat-input {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}