/*
  style.css
  Theme: Financial Harmony: For Family, Self, and Future
  Design System: Retro with Dynamic Color Transitions
  Color Scheme: Bright
  Animation Style: Drawn Animations
*/

/* ---------------------------------------------------
   1. CSS Variables & Root Styles
   --------------------------------------------------- */

:root {
    /* Color Palette - Bright & Vibrant */
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff7e5f;
    --accent-color-dark: #feb47b;
    --text-color: #333333;
    --heading-color: #222222;
    --light-text-color: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #212529;
    --border-color: #dee2e6;
    
    /* Dynamic Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --accent-gradient: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Spacing */
    --section-padding: 6rem 0;
}

/* ---------------------------------------------------
   2. Global & Base Styles
   --------------------------------------------------- */

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--heading-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Override Bootstrap default padding to avoid excessive space */
.py-5 {
    padding-top: var(--section-padding) !important;
    padding-bottom: var(--section-padding) !important;
}

/* ---------------------------------------------------
   3. Buttons & Interactive Elements
   --------------------------------------------------- */

.btn {
    font-family: var(--font-heading);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-image: var(--primary-gradient);
    background-size: 200% auto;
    color: var(--light-text-color);
    border: none;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--light-text-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-3px);
}

.retro-button {
    border-radius: 8px;
}

/* Form Styling */
.form-control {
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ---------------------------------------------------
   4. Header & Navigation
   --------------------------------------------------- */

.navbar {
    background: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.nav-link {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    color: var(--light-text-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    transition: width 0.4s ease;
    border-radius: 2px;
}

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

@media (max-width: 991.98px) {
    .navbar {
        background: var(--background-dark);
    }
    .navbar-collapse {
        background: var(--background-dark);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }
}


/* ---------------------------------------------------
   5. Section Specific Styles
   --------------------------------------------------- */

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple Parallax */
}

/* Card Styles (Global) */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: var(--light-text-color);
}

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

.card .card-image {
    width: 100%;
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .card-image img {
    border-radius: 10px;
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
}

.card .card-content, .card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Team Section */
.team-card .card-title {
    margin-top: 1rem;
    color: var(--primary-color);
}

/* Pricing Section */
.pricing-card {
    border: 2px solid var(--border-color);
}
.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
}
.pricing-card .card-header {
    background: var(--primary-gradient);
    color: var(--light-text-color);
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
}
.pricing-card.popular .card-header {
    background: var(--accent-gradient);
}
.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--heading-color);
}
.pricing-card .price .period {
    font-size: 1rem;
    color: var(--text-color);
}
.pricing-card ul li {
    padding: 0.5rem 0;
}

/* Case Studies - Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}
.timeline-item::after {
    content: '';
    position: absolute;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--light-text-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd)::after {
    right: -10px;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}
.timeline-content {
    background: var(--light-text-color);
}
@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 50px; padding-right: 1rem; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        padding-left: 50px;
    }
    .timeline-item::after { left: 10px; }
}

/* Progress Indicators */
.progress {
    border-radius: 10px;
}
.progress-bar.gradient-progress {
    background: var(--accent-gradient);
}

/* Awards Section */
.award-logo {
    transition: transform 0.4s ease;
}
.award-item:hover .award-logo {
    transform: scale(1.1) rotate(-5deg);
}

/* Careers - Accordion */
.accordion-button {
    font-family: var(--font-heading);
    font-weight: 700;
}
.accordion-button:not(.collapsed) {
    color: var(--light-text-color);
    background: var(--primary-gradient);
}
.accordion-item {
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* External Resources Section */
.external-link-card h5 a {
    color: var(--heading-color);
}
.external-link-card h5 a:hover {
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    background-size: cover;
    background-position: center;
}
.contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------
   6. Footer
   --------------------------------------------------- */

footer {
    background-color: var(--background-dark);
}
footer h6 {
    color: var(--light-text-color);
}
footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--light-text-color);
    text-decoration: none;
}

/* ---------------------------------------------------
   7. Specific Page Styles
   --------------------------------------------------- */

/* Success Page */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    background-image: var(--primary-gradient);
}

.success-page .card {
    max-width: 600px;
}

/* Privacy & Terms Pages */
.page-with-fixed-header {
    padding-top: 120px; /* Adjust based on fixed header height */
    padding-bottom: 60px;
}

/* ---------------------------------------------------
   8. Animation & Utility Classes
   --------------------------------------------------- */

[data-scroll-animate] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-scroll-animate="fade-up"] {
    transform: translateY(50px);
}

[data-scroll-animate="fade-right"] {
    transform: translateX(-50px);
}

[data-scroll-animate="slide-in-left"] {
    transform: translateX(-100px);
}
[data-scroll-animate="slide-in-right"] {
    transform: translateX(100px);
}
[data-scroll-animate="zoom-in"] {
    transform: scale(0.9);
}

[data-scroll-animate].is-visible {
    opacity: 1;
    transform: none;
}

header{
    background: rgba(33, 37, 41, 0.95) !important;
}
html,body{
    overflow-x: hidden;
}