/* ========================================
   BCB Solutions - Additional Custom Styles
   Portal-specific and advanced styling
   ======================================== */

/* ========================================
   CLIENT PORTAL SPECIFIC STYLES
   ======================================== */
.client-portal-main {
    min-height: 100vh;
    background: var(--pearl-white);
}

.portal-header {
    background: linear-gradient(135deg, var(--emerald-green) 0%, #003d1f 100%);
}

.milestone-card {
    transition: var(--transition-smooth);
}

.milestone-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar div {
    transition: width 1s ease-in-out;
}

/* ========================================
   ENHANCED ANIMATIONS
   ======================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation: slideInUp 0.8s ease-out forwards;
}

/* ========================================
   ENHANCED SERVICE CARDS
   ======================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald-green), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========================================
   TESTIMONIAL ENHANCED STYLING
   ======================================== */
.testimonial-card {
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    font-family: var(--font-primary);
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(197, 162, 83, 0.3);
}

/* ========================================
   FORM STYLING
   ======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--pearl-white);
    border-radius: 4px;
    background: var(--white);
    transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--emerald-green);
    box-shadow: 0 0 0 3px rgba(0, 85, 46, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   ENHANCED TIMELINE
   ======================================== */
.timeline-item {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   LOADING STATES
   ======================================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--pearl-white);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   MODAL / OVERLAY
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 16, 16, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    float: right;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--jet-black);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--gold);
}

/* ========================================
   NOTIFICATION / TOAST
   ======================================== */
.notification {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    background: var(--emerald-green);
    color: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    min-width: 300px;
    transform: translateX(400px);
    transition: var(--transition-smooth);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--emerald-green);
}

.notification.error {
    background: #ff6b6b;
}

.notification.warning {
    background: var(--gold);
    color: var(--jet-black);
}

/* ========================================
   ENHANCED FOOTER
   ======================================== */
.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 162, 83, 0.1);
    border-radius: 50%;
    color: var(--gold);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--jet-black);
    transform: translateY(-3px);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--jet-black);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(197, 162, 83, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--emerald-green);
    color: var(--white);
    transform: translateY(-5px);
}

/* ========================================
   ENHANCED TABLES
   ======================================== */
table {
    border-collapse: collapse;
}

table th {
    font-family: var(--font-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

table tr:hover {
    background: var(--pearl-white);
}

/* ========================================
   BADGE ELEMENTS
   ======================================== */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--emerald-green);
    color: var(--white);
}

.badge-warning {
    background: var(--gold);
    color: var(--jet-black);
}

.badge-danger {
    background: #ff6b6b;
    color: var(--white);
}

.badge-info {
    background: var(--pearl-white);
    color: var(--jet-black);
}

/* ========================================
   RESPONSIVE ENHANCEMENTS
   ======================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .scroll-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .notification {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        left: var(--spacing-md);
        min-width: auto;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .hero-title { font-size: 2rem; }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .portal-tabs,
    .scroll-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--jet-black);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}
