/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #b83b5e;
    --secondary-color: #6a2c70;
    --accent-color: #f08a5d;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --dark-bg: #222;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Helper Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: #333 !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #FFFEFE;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
}

/* Custom Logo Styling to fit large logo in compact header */
.navbar {
    min-height: 85px;
    /* Compact header height */
    position: relative;
    /* For absolute logo */
}

.logo-custom {
    height: 120px;
    /* Large Logo */
    width: auto;
    position: relative;
    /* changed from absolute to flow in header */
    z-index: 100;
    transition: height 0.3s ease;
    transform: scale(1.3);
    transform-origin: left center;
    /* Center vertical alignment */
    margin-right: 30px;
    /* Space for scale width expansion */
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Mobile Logo Adjustment */
@media (max-width: 991px) {
    .logo-custom {
        height: 70px;
        position: static;
        /* Static on mobile/tablet to avoid overlap */
        transform: scale(1.2);
        transform-origin: left center;
        margin-left: 10px;
        margin-right: 15px;
        margin-bottom: 5px;
    }

    .navbar {
        min-height: auto;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* Default bg if inline style missing */
    background-image: url('https://images.unsplash.com/photo-1519834785169-98be25ec3f84?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-page {
    height: 400px;
    /* Shorter hero for inner pages */
}

/* Animations & Hover Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    overflow: hidden;
    transition: transform 0.1s;
    /* Fast transition for tilt */
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Buttons */
.btn-custom {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
}

.btn-custom:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #f9f9f9;
    color: #333;
    padding: 30px 0 10px;
    text-align: center;
    border-top: 1px solid #e1e1e1;
}

footer a {
    color: #555;
}

footer a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .navbar-brand img {
        height: 75px !important;
        width: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Carousel Mobile Adjustments */
    .carousel-caption {
        bottom: 20% !important;
        padding-bottom: 0;
    }

    .carousel-caption h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem;
    }

    .carousel-caption p {
        font-size: 1rem !important;
        margin-bottom: 1rem;
        display: block;
        /* Ensure it's not hidden by other rules if any */
    }

    .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    /* Override text colors for dark mode */
    .text-secondary {
        color: #d0d0d0 !important;
    }

    .text-muted {
        color: #aaa !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .display-6,
    .display-2 {
        color: #ffffff !important;
    }

    /* Backgrounds */
    .bg-white {
        background-color: #1e1e1e !important;
    }

    .bg-light {
        background-color: #252525 !important;
    }

    /* Cards */
    .benefit-card,
    .tool-card {
        background-color: #2a2a2a;
        border-color: #444;
    }

    .card {
        background-color: #2a2a2a;
    }

    /* Header Navigation Dark Mode - Force White */
    .navbar {
        background-color: #ffffff !important;
        border-bottom: 1px solid #e1e1e1;
    }

    .navbar-nav .nav-link {
        color: #333333 !important;
    }

    .navbar-nav .nav-link:hover {
        color: var(--primary-color) !important;
    }

    /* Keep logo normal (no invert) */
    .logo-custom {
        filter: none;
    }

    .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.1) !important;
    }

    .navbar-toggler-icon {
        filter: none !important;
    }

    /* Footer Text Visibility Fix for Dark Mode */
    footer h1,
    footer h2,
    footer h3,
    footer h4,
    footer h5,
    footer h6 {
        color: #000000 !important;
    }

    footer .text-secondary {
        color: #333333 !important;
    }

    footer a {
        color: #333333 !important;
    }

    footer .text-white-50 {
        color: #6c757d !important;
    }

    footer .text-dark {
        color: #000000 !important;
    }

    /* Fix Outline Dark Buttons in Dark Mode */
    .btn-outline-dark {
        color: #f8f9fa !important;
        border-color: #f8f9fa !important;
    }

    .btn-outline-dark:hover {
        background-color: #f8f9fa !important;
        color: #000000 !important;
    }
}

/* Homepage Hero Font Resize */
.carousel-caption h1 {
    font-size: 2.8rem !important; /* Reduced from ~4rem */
}
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.8rem !important;
    }
}