/* ===================================
   CSS Variables - EASILY CUSTOMIZABLE
   =================================== */
:root {
    /* Theme Color - Change this one color to update the entire theme */
    --theme-color: #e91e63;
    /* Pink/Red - Change to any color you prefer */

    /* App Name - This is used by JavaScript to update app names */
    --app-name: "Legal Romance";

    /* Derived Colors from Theme */
    --theme-color-light: #f8bbd0;
    --theme-color-dark: #c2185b;
    --theme-color-gradient: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-dark) 100%);

    /* Neutral Colors */
    --primary-color: var(--theme-color);
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;

    /* Typography */
    --font-family-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --font-weight-bolder: 700;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --shadow-xl: 0 2rem 4rem rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ===================================
   Global Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 0.5rem;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: var(--font-weight-medium);
    margin: 0 0.5rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content h1 {
    color: white;
    font-weight: var(--font-weight-bolder);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.app-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-stats h3 {
    color: white;
    font-weight: var(--font-weight-bolder);
}

.app-stats p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hero-image img {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--theme-color-dark);
    border-color: var(--theme-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Feature Cards
   =================================== */
.feature-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    color: var(--primary-color);
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h4 {
    color: var(--dark-color);
    font-weight: var(--font-weight-bold);
}

/* ===================================
   Pricing Cards
   =================================== */
.pricing-card {
    background: white;
    border: 2px solid #e9ecef;
    transition: all var(--transition-normal);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.premium {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pricing-card.premium:hover {
    box-shadow: var(--shadow-xl);
}

.price {
    font-size: 3rem;
    font-weight: var(--font-weight-bolder);
    color: var(--primary-color);
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price .period {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: var(--font-weight-normal);
}

.pricing-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

/* ===================================
   Testimonials
   =================================== */
.testimonial-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stars i {
    color: #ffc107;
}

.avatar i {
    color: #dee2e6;
}

/* ===================================
   Social Links
   =================================== */
.social-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--theme-color-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    color: white !important;
}

/* ===================================
   Footer
   =================================== */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

footer h5 {
    color: white;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer p {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .text-white {
    color: rgba(255, 255, 255, 0.9) !important;
}

footer .text-white:hover {
    color: white !important;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand span {
    color: var(--primary-color);
}

/* ===================================
   Responsive Design
   =================================== */
/* Extra Small Devices (576px and down) */
@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .app-stats .col-4 {
        margin-bottom: 1rem;
    }

    .price {
        font-size: 2rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        margin: 0.25rem;
    }
}

/* Small Devices (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .price {
        font-size: 2.5rem;
    }
}

/* Medium Devices (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-color-dark);
}

/* ===================================
   Loading Animation
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   Custom Utility Classes
   =================================== */
.text-gradient {
    background: var(--theme-color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--theme-color-gradient);
}

.border-gradient {
    border: 2px solid;
    border-image: var(--theme-color-gradient) 1;
}

/* ===================================
   Print Styles
   =================================== */
@media print {

    .navbar,
    .hero-buttons,
    .social-links,
    footer {
        display: none;
    }

    .hero-section {
        background: white;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content h1,
    .hero-content p {
        color: var(--dark-color);
        text-shadow: none;
    }
}