@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #D4AF37;
    --primary-dark: #B8860B;
    --secondary: #FFFFFF;
    --accent: #F9F6EE;
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --error: #E74C3C;
    --success: #27AE60;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* Navbar */
nav {
    height: 80px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.2rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 4px;
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: transparent;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--text-dark);
    border-color: var(--secondary);
}

/* Home Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.profiles-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1200px) {
    .profiles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .profiles-grid {
        grid-template-columns: 1fr !important;
    }
}

.card {
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #111;
    color: #888;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
    line-height: 2.2;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.8rem;
}

.admin-link {
    display: inline-block;
    margin-top: 10px;
    opacity: 0.5;
}

/* News Page */
.news-header {
    background: var(--accent);
    padding: 100px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .news-header {
        padding: 60px 0;
    }
    .news-header h1 {
        font-size: 2.2rem !important;
    }
}

.featured-news {
    margin-bottom: 60px;
}

.news-article-full {
    background: var(--secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.news-article-img {
    background-size: cover;
    background-position: center;
}

.news-article-content {
    padding: 50px;
}

@media (max-width: 1024px) {
    .news-article-content { padding: 30px; }
}

@media (max-width: 768px) {
    .news-article-content { padding: 25px 20px; }
}

.news-meta {
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 40px;
    background: var(--secondary);
    box-shadow: var(--shadow);
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.sidebar {
    background: var(--accent);
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
}

.profile-card-large {
    text-align: center;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
    border: 5px solid var(--primary);
}

/* Matrimony Cards */
.profile-card {
    position: relative;
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.locked-overlay {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    margin-top: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--secondary);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .news-article-full {
        grid-template-columns: 1fr;
    }

    .news-article-img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .auth-container {
        width: 95%;
        padding: 20px;
    }
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border: 2px solid #b8860b;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.best-value {
    background: #b8860b;
    color: #fff;
    padding: 5px 20px;
    position: absolute;
    top: 20px;
    right: -35px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    width: 150px;
}

.pricing-header h3 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.pricing-header .duration {
    color: #888;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: #b8860b;
    margin-right: 15px;
    width: 20px;
}

/* Contact Unlock Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-content i {
    font-size: 4rem;
    color: #b8860b;
    margin-bottom: 20px;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    color: #666;
    margin-bottom: 30px;
}

.modal-btns {
    display: flex;
    gap: 15px;
}

.modal-btns button {
    flex: 1;
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}
