/* Premium Modern CSS for Wifaq Marriage Platform */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables */
:root {
    --primary-color: #8c3677;
    /* Brightened plum for dark mode contrast */
    --secondary-color: #a84b87;
    /* Brightened magenta */
    --accent-gold: #e5c158;
    /* Premium bright gold */
    --accent-gold-hover: #f3d474;
    --text-dark: #8DE1EB;
    /* Light text for dark backgrounds */
    --text-muted: #a1a1aa;
    /* Light muted text */
    --bg-light: #0d0d12;
    /* Deepest dark background */
    --bg-white: #1a1a24;
    /* Elevated dark card background */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.6);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Dark Mode Bootstrap Overrides */
.bg-white {
    background-color: var(--bg-white) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}


.col-form-label {
    color: #a84b87 !important;
}

.alert-success,.bg-secondary {
    background: #e5c158 !important;
    background: #61666B !important;
    color: #ffffff !important;
    font-size: 15px;
}

.card {
    background-color: var(--bg-white) !important;
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.form-control,
.form-select {
    background-color: #22222d !important;
    color: var(--text-dark) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: #2a2a35 !important;
    color: #fff !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 0.25rem rgba(229, 193, 88, 0.25) !important;
}

.input-group-text {
    background-color: var(--bg-white) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-muted) !important;
}

.modal-content {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
 color: #a84b87 !important;
}

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

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

.section-title-wrapper {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    font-size: 1rem;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 4px 15px rgba(140, 54, 119, 0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff !important;
}

.btn-premium:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 193, 88, 0.2);
    border-color: #fff;
    color: #fff !important;
}

.btn-outline-premium {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 13px 38px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-premium:hover {
    background: var(--accent-gold);
    color: #fff;
}

/* Navbar */
.navbar {
    background: var(--primary-color) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 10px;
    position: relative;
    padding: 8px 0 !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../images/LOVE.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(106, 42, 91, 0.85) 0%, rgba(20, 10, 20, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    display: block;
    font-weight: 500;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead-text {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

/* About Section */
.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 2;
    width: 100%;
    transform: rotate(3deg);
    transition: var(--transition);
}

.about-image-wrapper:hover .about-image {
    transform: rotate(0);
}

.about-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 20px;
    z-index: 1;
    transform: rotate(-3deg);
    opacity: 0.1;
}

/* Services */
.service-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--accent-gold);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-gold);
    color: #fff;
    transform: rotateY(180deg);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Features/Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Contact Section */
.contact-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.contact-icon-box {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 20px;
}

.contact-info h5 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Footer Section */
.footer-premium {
    background-color: #1a1a24;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    position: relative;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about {
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
}

.app-badges img {
    height: 45px;
    transition: var(--transition);
    margin: 0 5px;
}

.app-badges img:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Auth Pages (Login) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e6e6ef 100%);
    padding: 40px 0;
}

.auth-card {
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    position: relative;
}

.auth-header {
    background: var(--primary-color);
    padding: 40px;
    text-align: center;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
}

.auth-body {
    padding: 60px 40px 40px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero .lead-text {
        font-size: 1.1rem;
    }

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

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

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

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Animations Tools */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}