/* Enhanced styles for Rotach Investments LLC */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Custom colors and overrides */
:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --success: #27ae60;
    --info: #3498db;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --accent: #6c5ce7;
    --muted: #95a5a6;
    --border-light: rgba(0, 0, 0, 0.1);
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* General styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h2 {
    letter-spacing: 1px;
}


.custom-radio .form-check-input:checked {
    background-color: #6200EA !important;
    border-color: #6200EA !important;
}

/* Enhanced hero section with parallax effect */
.hero-section {
    height: 80vh;
    min-height: 600px;
    background-image: url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    margin-bottom: 5rem;
    border-radius: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 73, 94, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 2rem;
}



.hero-text {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-btn {
    font-weight: 500;
    letter-spacing: 1px;
    border-width: 2px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* KPI Card Styling */
.kpi-card {
    padding: 1.5rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.kpi-icon {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.03);
}

.kpi-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.kpi-subtext {
    opacity: 0.7;
}

/* Section number styling */
.section-number-container {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(44, 62, 80, 0.1);
    line-height: 1;
}

.section-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin-bottom: 2rem;
}

.section-text {
    line-height: 1.8;
    color: #555;
}

/* About section styling */
.about-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.values-container {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.value-item {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
}

.value-item:last-child {
    margin-bottom: 0;
}

.value-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-text {
    color: #666;
    margin-bottom: 0;
}

/* Card styling */
.card {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.card-header {
    background-color: rgba(44, 62, 80, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: rgba(44, 62, 80, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

/* Performance chart styling */
.performance-chart {
    height: 400px;
}

.btn-chart-period {
    border-radius: 5px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-color: #dee2e6;
}

.btn-chart-period.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Approach cards styling */
.approach-card {
    text-align: center;
    padding: 1.25rem;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.approach-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(44, 62, 80, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 1rem;
}

.approach-icon {
    color: var(--primary);
}

.approach-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.approach-text {
    color: #666;
    line-height: 1.6;
}

/* Membership cards styling */
.membership-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.membership-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.membership-text {
    color: #666;
    line-height: 1.7;
}

/* Resource cards styling */
.resource-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    margin-bottom: 1rem;
}

/* Contact section styling */
.contact-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Custom button styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1a2530;
    border-color: #1a2530;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.3);
}

/* Footer styling */
footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
    margin-top: 5rem;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

footer ul {
    list-style-type: none;
    padding-left: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.social-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Table styling */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table thead {
    background-color: var(--primary);
    color: white;
}

.table th {
    font-weight: 600;
    border-top: none;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(44, 62, 80, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

.accordion-body {
    padding: 1.5rem;
}

/* Document card styling */
.document-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.document-card .card-body {
    flex: 1;
}

/* Tab styling */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

/* Stats card */
.stats-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stats-card p {
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 500;
}

/* Form control styling */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(44, 62, 80, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}



/* Custom animation for loading states */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Document Center Styling */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.doc-card {
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.doc-icon {
    height: 70px;
    width: auto;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

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

/* File type icons with enhanced styling */
.file-pdf-icon {
    color: #e74c3c;
}

.file-word-icon {
    color: #3498db;
}

.file-excel-icon {
    color: #27ae60;
}

.file-ppt-icon {
    color: #f39c12;
}

.file-zip-icon {
    color: #8e44ad;
}

.file-icon {
    color: #7f8c8d;
}

/* Responsiveness adjustments */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-section {
        height: 70vh;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        height: 60vh;
        min-height: 500px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .kpi-card, .approach-card, .membership-card, .resource-card {
        margin-bottom: 1.5rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-section {
        height: auto;
        min-height: 450px;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .nav-tabs {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .card, .card-body, .card-header {
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .hero-section {
        height: auto;
        background: none;
        color: black;
    }
    
    .hero-overlay {
        background: none;
    }
    
    .hero-content {
        color: black;
    }
}

.accordion-button {
            background-color: transparent !important;
        }
        .accordion-button:not(.collapsed) {
            background-color: transparent !important;
        }
        .accordion {
            background-color: transparent !important;
        }


tr:hover {
    background-color: rgba(98,0,234,0.15) !important;
    cursor: pointer;
}

tr td:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(98,0,234,0) 0%, rgba(98,0,234,0.3) 50%, rgba(98,0,234,0) 100%);
    transform: translateY(5px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

tr:hover td:after {
    transform: translateY(0);
    opacity: 1;
}

/* Button styling */
.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.btn-primary {
    background: linear-gradient(90deg, #6200EA, #3700B3);
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #7722EE, #4811C5);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Custom dropdown styling */
.dropdown-dark-theme .Select-control,
.dropdown-dark-theme .Select-menu-outer,
.dropdown-dark-theme .Select-menu {
    background-color: rgba(26,27,30,0.8) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.dropdown-dark-theme .Select-value-label,
.dropdown-dark-theme .Select--single > .Select-control .Select-value,
.dropdown-dark-theme .Select-placeholder {
    color: white !important;
}

.dropdown-dark-theme .Select-option {
    background-color: rgba(26,27,30,0.9) !important;
    color: white !important;
}

.dropdown-dark-theme .Select-option.is-focused {
    background-color: rgba(98,0,234,0.2) !important;
}

.dropdown-dark-theme .Select-option:hover {
    background-color: rgba(98,0,234,0.1) !important;
}

.dropdown-dark-theme .Select-arrow {
    border-color: rgba(255,255,255,0.5) transparent transparent !important;
}

.dropdown-dark-theme .Select.is-open > .Select-control .Select-arrow {
    border-color: transparent transparent rgba(255,255,255,0.5) !important;
}

/* Chart hover effects */
.js-plotly-plot .plotly .modebar {
    filter: invert(0.8);
}

/* Tab styling */
.nav-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-tabs .nav-link {
    color: rgba(255,255,255,0.7);
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.05);
    border: none;
}

.nav-tabs .nav-link.active {
    color: #00BFA5;
    background-color: transparent;
    border-bottom: 3px solid #00BFA5;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.3); }
    100% { opacity: 0.6; transform: scale(1); }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

.card {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    filter: brightness(110%);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(98,0,234,0.1);
    color: white;
    box-shadow: none;
}

.accordion-button {
    background-color: rgba(26,27,30,0.7);
    color: rgba(255,255,255,0.8);
}

.accordion-button:hover {
    background-color: rgba(98,0,234,0.05);
}

.accordion-button::after {
    filter: invert(1);
}

/* Form styling */
input::placeholder, textarea::placeholder, select::placeholder {
    color: rgba(255,255,255,0.5);
}

input:focus, textarea:focus, select:focus {
    background-color: rgba(255,255,255,0.1) !important;
    border-color: rgba(98,0,234,0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(98,0,234,0.25) !important;
    color: white !important;
}

/* Animated underline for contact info */
.card-body .d-flex {
    position: relative;
    padding-bottom: 2px;
}

.card-body .d-flex:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: rgba(255,255,255,0.2);
    transition: width 0.3s ease;
}

.card-body .d-flex:hover:after {
    width: 100%;
}

 /* Custom table styling */
table tr:hover {
    background-color: rgba(98,0,234,0.15) !important;
}

table tr {
    cursor: pointer;
}

table td, table th {
    position: relative;
    overflow: hidden;
}

table td:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(98,0,234,0) 0%, rgba(98,0,234,0.3) 50%, rgba(98,0,234,0) 100%);
    transform: translateY(5px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

table tr:hover td:after {
    transform: translateY(0);
    opacity: 1;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

.document-card {
    transition: all 0.3s ease;
}
 
@media (max-width: 768px) {
    /* Adjust chart title size on mobile */
    .js-plotly-plot .plotly .gtitle {
        font-size: 0px !important;
    }
    
    /* Adjust axis label size on mobile */
    .js-plotly-plot .plotly .g-xtitle,
    .js-plotly-plot .plotly .g-ytitle {
        font-size: 10px !important;
    }
    
    /* Adjust tick label size on mobile */
    .js-plotly-plot .plotly .xtick text,
    .js-plotly-plot .plotly .ytick text {
        font-size: 8px !important;
    }
    
    /* Make sure the chart container adapts properly */
    .chart-container {
        height: 250px !important;
        width: 100% !important;
        margin: 0 auto;
    }
}

/* Make sure charts stretch responsively */
.js-plotly-plot, 
.plot-container {
    width: 100% !important;
    height: 100% !important;
}

/* Ensure proper rendering on mobile */
.main-svg {
    width: 100% !important;
    height: 100% !important;
}

/* Responsive container for all screen sizes */
.chart-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 250px;
}