/* Custom CSS for Dr. Cedrick Holmes Fractional CTO Website */

/* Base Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.hero-bg {
    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 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-cta .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Revenue Potential Section */
.revenue-potential {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.revenue-potential::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 1000 1000"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

.value-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.4);
}

.cta-box {
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Trust Section */
.trust-section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.trust-logo {
    transition: transform 0.3s ease;
}

.trust-logo:hover {
    transform: translateY(-5px);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

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

.service-card .card-header {
    border: none;
    padding: 2rem 1.5rem 1rem;
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card .card-footer {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem 2rem;
}

.price-tag {
    text-align: center;
}

/* Service Summary Cards (Home Page) */
.service-summary {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #dee2e6;
}

.service-summary i {
    transition: transform 0.3s ease;
}

.service-summary:hover i {
    transform: scale(1.1);
}

/* Results Section */
.results-section {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
}

.result-item {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: scale(1.05);
}

/* Process Steps */
.step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

/* Case Study Sections */
.case-hero {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
}

.case-study-visual {
    transition: transform 0.3s ease;
}

.case-study-visual:hover {
    transform: scale(1.02);
}

/* Challenge Cards */
.challenge-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.challenge-item i {
    margin-top: 0.25rem;
}

/* Solution Phases */
.solution-phase {
    padding: 2rem;
}

.phase-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Result Cards */
.result-card {
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-header {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -28px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
}

/* APMA Specific Styles */
.apma-hero {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
}

.apma-dashboard {
    transition: transform 0.3s ease;
}

.apma-dashboard:hover {
    transform: scale(1.02);
}

.metric-card {
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: scale(1.05);
}

/* Problem Cards */
.problem-card {
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Feature Items */
.feature-item {
    margin-bottom: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Contact Form Styles */
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.contact-info-card {
    border-radius: 15px;
}

.contact-item {
    padding: 1rem 0;
}

.connect-card {
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.connect-card:hover {
    transform: translateY(-5px);
}

/* Audit Form Styles */
.audit-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.value-item {
    padding: 2rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.testimonial-card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Services Page Styles */
.services-hero {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
}

.service-section {
    margin-bottom: 4rem;
}

.service-pricing {
    border-radius: 15px;
    position: sticky;
    top: 100px;
}

.service-content h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Impact Cards */
.impact-card {
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Tech Stack */
.tech-category {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
}

/* Pricing Section */
.pricing-card {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

/* ROI Calculator */
.roi-calculator {
    border-radius: 15px;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
}

footer .contact-info p {
    margin-bottom: 0.5rem;
}

footer .social-links a {
    transition: transform 0.3s ease;
}

footer .social-links a:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .service-pricing {
        position: static;
        margin-top: 2rem;
    }
    
    .hero-cta .btn {
        display: block;
        margin: 1rem 0;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -18px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .phase-icon,
    .step-icon,
    .problem-icon,
    .value-icon,
    .impact-icon {
        width: 60px;
        height: 60px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.box-shadow {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-radius-lg {
    border-radius: 20px;
}

.sticky-top-custom {
    position: sticky;
    top: 100px;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section .hero-bg,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}
