/* Reset & Basics */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
body { background-color: #faf8f0; color: #4a3f35; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* Header & Nav */
header { background: linear-gradient(135deg, #800020, #a00030); padding: 1rem 5%; box-shadow: 0 4px 10px rgba(0,0,0,0.3); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 15px; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: #D4AF37; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
nav { display: flex; flex-wrap: wrap; gap: 15px; }
nav a { color: white; text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: #D4AF37; }
.auth-buttons .btn { padding: 8px 20px; border: none; border-radius: 25px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-login { background: transparent; color: white; border: 2px solid white; }
.btn-login:hover { background: white; color: #800020; }
.btn-register { background: #D4AF37; color: #800020; }
.btn-register:hover { background: #e6c45a; transform: scale(1.05); }

/* Hero Section (Banner) - RESTORED WITH YOUR IMAGE */
.hero-section {
    min-height: 75vh; /* Fixes collapsing */
    width: 100%;
    /* PUTTING YOUR IMAGE BACK HERE */
    background-image: url('images/banner.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(128, 0, 32, 0.6);
}
.hero-content { position: relative; text-align: center; background: rgba(255, 255, 255, 0.95); padding: 40px; border-radius: 20px; border: 3px solid #D4AF37; box-shadow: 0 20px 40px rgba(0,0,0,0.5); max-width: 90%; margin: 20px; }
.trust-badge { color: #800020; }
.trust-badge h2 { color: #800020; font-size: 2.5rem; margin: 10px 0; }
.trust-badge p { font-size: 1.2rem; color: #555; }
.trust-badge i { font-size: 3rem; color: #D4AF37; }

/* Featured Profile Section */
.featured-section { padding: 80px 5%; text-align: center; background: #fffdf7; }
.section-title { font-size: 2.5rem; color: #800020; margin-bottom: 40px; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 25%; width: 50%; height: 3px; background: #D4AF37; }
.profile-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 50px; max-width: 1100px; margin: 0 auto; }
.profile-image-wrapper { position: relative; width: 300px; height: 350px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); background: #eee; }
.profile-image { width: 100%; height: 100%; /* PUTTING YOUR PROFILE IMAGE BACK */ background-image: url('images/profile.jpg'); background-size: cover; background-position: center 20%; transition: transform 0.5s; }
.profile-image-wrapper:hover .profile-image { transform: scale(1.05); }
.profile-glow { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background: radial-gradient(circle, rgba(212,175,55,0.4) 0%, transparent 70%); pointer-events: none; }
.profile-text { flex: 1; min-width: 300px; text-align: left; }
.profile-text h3 { font-size: 2rem; color: #800020; margin-bottom: 20px; }
.profile-text p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; color: #555; }

.btn-primary { background: #D4AF37; color: #800020; padding: 12px 35px; border: none; border-radius: 30px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(212,175,55,0.4); }
.btn-primary:hover { background: #c7a12c; transform: translateY(-3px); }

/* Features Section */
.features-section { background: linear-gradient(to right, #5e001a, #800020); padding: 60px 5%; color: white; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.feature-card { text-align: center; padding: 20px; background: rgba(255,255,255,0.1); border-radius: 15px; backdrop-filter: blur(5px); transition: 0.3s; }
.feature-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-10px); }
.feature-card i { font-size: 3rem; color: #D4AF37; margin-bottom: 15px; }
.feature-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: #ffeec2; }
.feature-card p { font-size: 0.9rem; opacity: 0.8; }

/* Footer */
footer { background: #4a000f; color: white; text-align: center; padding: 30px 5%; border-top: 3px solid #D4AF37; }
.footer-content p { margin: 5px 0; font-size: 1rem; opacity: 0.9; }
.footer-content p:first-child { color: #D4AF37; font-weight: bold; font-size: 1.1rem; margin-bottom: 15px; }

/* Modals (Login/Register) */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); justify-content: center; align-items: center; }
.modal-content { background: white; padding: 40px; border-radius: 20px; width: 90%; max-width: 400px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.4); animation: slideDown 0.4s ease; }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; color: #800020; cursor: pointer; }
.form-section { display: none; }
.form-section.active { display: block; }
.form-section h2 { color: #800020; margin-bottom: 20px; text-align: center; }
.input-group { position: relative; margin-bottom: 20px; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #aaa; }
.input-group input { width: 100%; padding: 12px 15px 12px 45px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.input-group input:focus { border-color: #800020; outline: none; }
.btn-full { width: 100%; padding: 12px; font-size: 1.1rem; margin-bottom: 15px; }
.form-section p { text-align: center; font-size: 0.9rem; }
.form-section a { color: #800020; font-weight: bold; text-decoration: none; }

/* Responsive Fix */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; align-items: center; }
    nav { justify-content: center; width: 100%; }
    .profile-text { text-align: center; }
    .trust-badge h2 { font-size: 1.8rem; }
    .profile-image-wrapper { width: 250px; height: 300px; }
}