/* ==========================================================================
   Modern Portfolio Styles - Yesbol Gabdullin
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --primary: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #3385d6;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --dark-custom: #0a0f1c;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary-alt: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-danger: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    --gradient-subtle: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
    
    /* Typography */
    --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-family-heading: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem;
    --card-padding: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

body {
    font-family: var(--font-family-base);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
    overflow-x: hidden;
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-family-heading);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    position: relative;
    overflow: hidden;
}

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

.bg-light-custom {
    background-color: #f8f9fa;
}

.bg-dark-custom {
    background-color: var(--dark-custom);
}

.text-light-gray {
    color: #a0aec0;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* --- Navigation --- */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    background-color: rgba(10, 15, 28, 0.95) !important;
}

.navbar.navbar-scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
    position: relative;
}

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

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

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* --- Buttons --- */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.5rem;
    transition: all var(--transition-base);
    border: none;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* --- Page Header --- */
.page-header {
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
    color: white;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    opacity: 0.3;
    animation: particles 20s linear infinite;
}

@keyframes particles {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

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

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

.profile-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card span {
    font-weight: 600;
    color: var(--dark);
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    left: -10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    right: -5%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.stat-card {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Value Propositions --- */
.value-prop-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.value-prop-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.value-prop-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-prop-icon i {
    font-size: 2rem;
    color: white;
}

/* --- Service Cards --- */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border-left: 4px solid transparent;
}

.service-card:hover {
    border-left-color: var(--primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: #4a5568;
}

/* --- Project Cards --- */
.project-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.project-icon i {
    font-size: 1.75rem;
    color: white;
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.metric-item {
    flex: 1;
    min-width: 120px;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    display: block;
}

.metric-label {
    font-size: 0.75rem;
    color: #718096;
    display: block;
    margin-top: 0.25rem;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border-left: 4px solid var(--primary);
}

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

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d3748;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.testimonial-avatar i {
    font-size: 1.5rem;
    color: white;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.trust-indicators {
    margin-top: 3rem;
}

.trust-badge {
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* --- About Page --- */
.about-image-wrapper {
    position: relative;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    min-width: 120px;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.quote-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary);
}

.quote-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* --- Timeline --- */
.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    display: flex;
    gap: 2rem;
    align-items: start;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    color: white;
}

.timeline-marker i {
    font-size: 1.5rem;
}

.timeline-marker.bg-primary { background: var(--gradient-primary-alt); }
.timeline-marker.bg-info { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }
.timeline-marker.bg-success { background: var(--gradient-success); }
.timeline-marker.bg-danger { background: var(--gradient-danger); }

.timeline-content {
    flex: 1;
}

.timeline-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    transition: all var(--transition-base);
}

.timeline-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

/* --- Strength/Core Cards --- */
.strength-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
}

.strength-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.strength-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.strength-icon i {
    font-size: 2rem;
    color: white;
}

/* --- Leadership Philosophy --- */
.principle-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    padding-left: 4rem;
}

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

.principle-number {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

/* --- Education Cards --- */
.education-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
    border-top: 4px solid var(--primary);
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.edu-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.edu-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.education-card-detailed {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
    border: 2px solid transparent;
}

.education-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.edu-icon-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.edu-icon-large i {
    font-size: 2.5rem;
    color: white;
}

/* --- Speaking Cards --- */
.speaking-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.speaking-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.speaking-icon i {
    font-size: 1.5rem;
    color: white;
}

.speaking-card-detailed {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary);
}

.speaking-header {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.speaking-icon-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.speaking-icon-large i {
    font-size: 2rem;
    color: white;
}

.speaking-meta {
    color: #718096;
    font-size: 0.95rem;
}

/* --- Services Page --- */
.service-detail-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    margin-bottom: 3rem;
}

.service-detail-card:hover {
    box-shadow: var(--shadow-xl);
}

.service-visual {
    text-align: center;
    position: relative;
}

.service-number {
    font-size: 8rem;
    font-weight: 700;
    color: rgba(102, 126, 234, 0.1);
    font-family: var(--font-family-heading);
    line-height: 1;
}

.service-icon-large {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -4rem auto 0;
    box-shadow: var(--shadow-xl);
}

.service-icon-large i {
    font-size: 3.5rem;
    color: white;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

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

/* --- Technology Stack --- */
.tech-category-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.tech-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-badge {
    background: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.tech-level {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.tech-level.expert {
    background: #d4edda;
    color: #155724;
}

.tech-level.advanced {
    background: #d1ecf1;
    color: #0c5460;
}

.tech-level.intermediate {
    background: #fff3cd;
    color: #856404;
}

/* --- Approach/Methodology --- */
.approach-flow {
    position: relative;
}

.approach-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
}

.approach-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.approach-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(102, 126, 234, 0.2);
    font-family: var(--font-family-heading);
    line-height: 1;
    margin-bottom: 1rem;
}

.approach-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.approach-icon i {
    font-size: 2rem;
    color: white;
}

.approach-list {
    list-style: none;
    padding: 0;
}

.approach-list li {
    padding: 0.5rem 0;
    color: #4a5568;
}

.approach-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.approach-arrows .arrow {
    position: absolute;
    color: #cbd5e0;
    font-size: 2rem;
}

.approach-arrows .arrow-1 {
    left: 23%;
}

.approach-arrows .arrow-2 {
    left: 48%;
}

.approach-arrows .arrow-3 {
    left: 73%;
}

/* --- Consultation CTA --- */
.consultation-cta {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary-light);
}

/* --- FAQ Accordion --- */
.faq-accordion .accordion-item {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.5rem;
    background: white;
    border: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: none;
}

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

.faq-accordion .accordion-button.collapsed::after {
    filter: none;
}

.faq-accordion .accordion-body {
    padding: 1.5rem;
}

/* --- Portfolio Page --- */
.project-showcase {
    margin-bottom: 4rem;
}

.project-visual-wrapper {
    position: relative;
}

.project-category-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    z-index: 10;
}

.project-visual {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-visual-icon {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.project-visual-icon i {
    font-size: 4rem;
    color: white;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.tech-badge-mini {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
}

.project-section {
    margin-bottom: 1.5rem;
}

.project-section h5 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.impact-metric {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: var(--radius-md);
}

.impact-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    display: block;
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 0.8rem;
    color: #718096;
}

/* --- Portfolio Stats --- */
.stat-card-large {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    border-top: 4px solid var(--primary);
}

.stat-card-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.stat-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label-large {
    color: #718096;
    font-size: 0.95rem;
}

/* --- Capability Cards --- */
.capability-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.capability-list {
    text-align: left;
    padding: 0;
    list-style: none;
}

.capability-list li {
    padding: 0.5rem 0;
    color: #4a5568;
}

/* --- Experience Page --- */
.summary-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

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

.summary-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.summary-icon i {
    font-size: 1.75rem;
    color: white;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.summary-label {
    color: #718096;
    font-size: 0.9rem;
}

.experience-timeline {
    position: relative;
}

.experience-block {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.company-header {
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.company-logo {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.company-logo i {
    font-size: 2rem;
    color: white;
}

.role-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.role-header {
    margin-bottom: 1.5rem;
}

.role-meta {
    color: #718096;
    font-size: 0.95rem;
}

.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #2d3748;
    line-height: 1.7;
}

.achievement-list li i {
    position: absolute;
    left: 0;
    top: 0.9rem;
}

.timeline-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.timeline-line {
    height: 60px;
    width: 2px;
    background: linear-gradient(to bottom, #cbd5e0, transparent);
    margin: 0 auto;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    margin: -8px auto 0;
}

.competency-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.competency-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.competency-icon i {
    font-size: 1.75rem;
}

.competency-list {
    list-style: none;
    padding: 0;
}

.competency-list li {
    padding: 0.5rem 0;
    color: #4a5568;
    padding-left: 1.5rem;
    position: relative;
}

.competency-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.cert-card-preview {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
}

.cert-card-preview:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cert-badge-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
}

.cert-badge-icon i {
    font-size: 2.5rem;
    color: white;
}

.cert-level-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.cert-level-badge.expert {
    background: var(--warning);
    color: var(--dark);
}

.cert-level-badge.associate {
    background: var(--info);
    color: white;
}

/* --- Skills Page --- */
.skill-stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.skill-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.skill-stat-icon i {
    font-size: 1.75rem;
    color: white;
}

.skill-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.skill-stat-label {
    color: #718096;
    font-size: 0.9rem;
}

.skill-category-section {
    margin-bottom: 4rem;
}

.category-header {
    text-align: center;
}

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

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 2.5rem;
    color: white;
}

.category-count {
    margin-top: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-item-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.skill-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.skill-item-card.skill-emphasis {
    border-color: var(--primary);
}

.skill-name {
    font-size: 1.05rem;
    color: var(--dark);
}

.skill-progress {
    margin: 1rem 0;
}

.progress {
    height: 8px;
    border-radius: var(--radius-sm);
    background-color: #e2e8f0;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 1.5s ease-in-out;
}

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

.skill-level-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.skill-percentage {
    font-size: 0.85rem;
    color: #718096;
}

.skill-detail {
    line-height: 1.6;
}

/* --- Technology Stack Grid --- */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-stack-category {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.tech-stack-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tech-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge.expert {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.tech-badge.advanced {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.tech-badge.intermediate {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.tech-legend {
    display: inline-flex;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* --- Certification Cards --- */
.certification-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.cert-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.cert-ribbon.cert-expert {
    background: var(--warning);
    color: var(--dark);
}

.cert-ribbon.cert-associate {
    background: var(--info);
    color: white;
}

.cert-icon-large {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.cert-icon-large i {
    font-size: 3rem;
    color: white;
}

/* --- Learning Section --- */
.learning-stats-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.focus-area {
    margin-bottom: 1.5rem;
}

.learning-areas {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.learning-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.learning-item i {
    font-size: 2rem;
    margin-top: 0.25rem;
}

/* --- Contact Page --- */
.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.contact-form textarea.form-control {
    resize: vertical;
}

.contact-info-sidebar {
    position: sticky;
    top: 100px;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: white;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    color: var(--dark);
}

.social-link-large:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.social-link-large.linkedin:hover {
    background: #0077b5;
    color: white;
}

.social-link-large.github:hover {
    background: #333;
    color: white;
}

.social-link-large.email:hover {
    background: var(--danger);
    color: white;
}

.social-link-large i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-card {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: #155724;
}

.platform-card {
    display: block;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
    text-decoration: none;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* --- CTA Cards for Contact Page --- */
.cta-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.cta-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.cta-card-content {
    padding: 3rem 2rem;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
}

.cta-icon.linkedin {
    background: #0077b5;
}

.info-box {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.info-box:hover {
    background: #e9ecef;
    transform: translateY(-4px);
}

.info-box i {
    font-size: 1.75rem;
    display: block;
}

.contact-faq-accordion .accordion-item {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

/* --- Publications & Certifications Page --- */
.credential-stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.credential-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.credential-stat-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.credential-stat-icon i {
    font-size: 2rem;
    color: white;
}

.credential-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-family-heading);
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.credential-stat-label {
    color: #718096;
    font-size: 0.9rem;
}

.cert-level-section {
    margin-bottom: 3rem;
}

.certification-card-featured {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--warning);
}

.cert-icon-featured {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cert-icon-featured i {
    font-size: 3rem;
    color: white;
}

.certification-card-standard {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.certification-card-standard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.cert-icon-standard {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon-standard i {
    font-size: 2rem;
    color: white;
}

.cert-badge-code {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

.cert-description {
    color: #4a5568;
    line-height: 1.6;
}

/* --- Certification Timeline --- */
.cert-timeline {
    position: relative;
    padding: 2rem 0;
}

.cert-timeline-path {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    transform: translateX(-50%);
}

.cert-timeline-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.cert-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.cert-timeline-marker {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    z-index: 2;
}

.cert-timeline-marker.expert-marker {
    background: var(--gradient-primary);
}

.cert-timeline-marker.associate-marker {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.cert-timeline-marker i {
    font-size: 1.75rem;
    color: white;
}

.cert-timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 400px;
}

/* --- Publications --- */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.pub-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pub-icon i {
    font-size: 1.75rem;
    color: white;
}

.pub-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Research Interests --- */
.research-interests-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.interest-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.interest-item:hover {
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    transform: translateY(-4px);
}

/* --- Alert Custom --- */
.alert-info-custom {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #17a2b8;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: #0c5460;
}

.alert-success-custom {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: #155724;
}

/* --- Footer --- */
.footer {
    background: var(--dark-custom);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer h5, .footer h6 {
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light-gray);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-base);
}

.social-icon:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px);
    color: white;
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
    body {
        padding-top: 66px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .sticky-category {
        position: static;
    }
    
    .contact-info-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .cert-timeline-path {
        left: 35px;
    }
    
    .cert-timeline-item {
        padding-left: 100px;
    }
    
    .cert-timeline-item:nth-child(even) {
        flex-direction: row;
    }
    
    .cert-timeline-marker {
        position: absolute;
        left: 0;
    }
    
    .cert-timeline-content {
        max-width: 100%;
    }
    
    .approach-arrows {
        display: none;
    }
    
    .service-reverse .row {
        flex-direction: column-reverse;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }
    
    .display-3, .display-4, .display-5 {
        font-size: 2rem;
    }
    
    .value-prop-card,
    .service-card,
    .project-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 575px) {
    :root {
        --section-padding: 3rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
}

/* --- Print Styles --- */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .btn,
    .social-links {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* --- Back to Top Button --- */
.btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* --- Cookie Consent Banner --- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.98);
    color: white;
    padding: 1.5rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent p {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cookie-consent p {
        margin-bottom: 0;
    }
}

/* ============================================
   CASE STUDIES STYLING
   ============================================ */

/* Case Study Hero Section */
.case-study-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.case-study-hero h1 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Metric Cards */
.metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: #6366f1;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

/* Challenge Card */
.challenge-card {
    border-left: 4px solid #ef4444;
    transition: all 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.1) !important;
}

.impact-badge {
    display: inline-block;
    background-color: #fee2e2;
    color: #991b1b;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Component Card */
.component-card {
    transition: all 0.3s ease;
}

.component-card:hover {
    transform: translateX(4px);
}

.component-card h5 {
    color: #6366f1;
}

/* Outcome Item */
.outcome-item {
    border-left: 3px solid #10b981;
    padding-left: 1rem !important;
    transition: all 0.3s ease;
}

.outcome-item:hover {
    background-color: #f0fdf4 !important;
    padding-left: 1.25rem !important;
}

.outcome-item i {
    color: #10b981;
}

/* ROI Card */
.roi-card {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.roi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.1) !important;
}

.roi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.roi-item:last-child {
    border-bottom: none;
}

.roi-metric {
    padding: 1rem 0;
}

.roi-total {
    padding-top: 1rem;
}

.border-white-50 {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* KPI Card */
.kpi-card {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15) !important;
}

.kpi-value {
    font-size: 2.5rem;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.kpi-unit {
    font-size: 1rem;
    opacity: 0.6;
}

.text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kpi-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Testimonial Card */
.testimonial-card {
    border-left: 4px solid #6366f1;
    position: relative;
}

.testimonial-card blockquote {
    margin: 0;
    font-style: italic;
}

.testimonial-card .fa-quote-left {
    color: rgba(99, 102, 241, 0.3);
}

/* Lesson Card */
.lesson-card {
    border-left: 4px solid #f59e0b;
    transition: all 0.3s ease;
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.1) !important;
}

.lesson-card h5 {
    color: #f59e0b;
}

/* Technical Content */
.tech-stat {
    border-left: 3px solid #6366f1;
    transition: all 0.3s ease;
}

.tech-stat:hover {
    background-color: rgba(99, 102, 241, 0.1) !important;
    transform: translateX(4px);
}

.tech-stat .fw-bold {
    color: #1f2937;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h2 {
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    font-weight: 500;
    border-width: 2px;
}

.cta-section .btn-light:hover {
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.cta-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Case Studies List Page */
.case-study-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.case-study-visual {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid #e5e7eb;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metric-box {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #f3f4f6;
}

.metric-box .metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.metric-box .metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.case-study-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-study-content h3 {
    margin-bottom: 0.5rem;
}

.case-study-content p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.outcomes-box {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.outcomes-box strong {
    color: #991b1b;
    display: block;
    margin-bottom: 0.5rem;
}

.outcomes-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.outcomes-box li {
    font-size: 0.875rem;
    color: #7f1d1d;
    padding: 0.25rem 0;
}

.outcomes-box li:before {
    content: '✓ ';
    font-weight: bold;
    margin-right: 0.5rem;
}

.impact-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.impact-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.1);
}

.impact-card .impact-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    display: block;
    margin-bottom: 0.5rem;
}

.impact-card .impact-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.service-highlight-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-highlight-card:hover {
    transform: translateY(-2px);
    border-color: #6366f1;
}

.service-highlight-card i {
    font-size: 1.75rem;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.service-highlight-card strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.service-highlight-card small {
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .metric-card {
        padding: 1rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .kpi-value {
        font-size: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .metric-box {
        padding: 0.75rem;
    }
    
    .metric-box .metric-value {
        font-size: 1rem;
    }
    
    .case-study-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .case-study-hero h1 {
        font-size: 1.75rem;
    }
    
    .kpi-value {
        font-size: 1.75rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESOURCES & INSIGHTS ARTICLE STYLING
   ============================================ */

/* Hero Section */
.resources-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.resources-hero h1 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Hero Section */
.resources-hero-enhanced {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-background-shapes::before,
.hero-background-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.hero-background-shapes::before {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    top: -200px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

.hero-background-shapes::after {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

.hero-title {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.stat-badge {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: #374151;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Article Container */
.article-container {
    line-height: 1.8;
}

.article-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 2rem;
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Gradient Background for Hero */
.bg-gradient-subtle {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-subtle::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.bg-gradient-subtle::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.article-meta {
    display: flex;
    gap: 0.5rem;
}

.article-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Table of Contents */
.toc-card {
    border-left: 4px solid #6366f1;
}

.toc-card a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toc-card a:hover {
    color: #6366f1;
    padding-left: 0.5rem;
}

.toc-card i {
    transition: transform 0.3s ease;
}

.toc-card a:hover i {
    transform: translateX(4px);
}

/* Section Dividers & Numbers */
.section-divider {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* Problem Cards */
.problem-card {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

.problem-icon {
    display: flex;
    justify-content: center;
}

/* Danger/Warning Light Backgrounds */
.bg-danger-light {
    background-color: #fee2e2 !important;
}

.bg-warning-light {
    background-color: #fef3c7 !important;
}

.bg-info-light {
    background-color: #e0f2fe !important;
}

.bg-secondary-light {
    background-color: #e5e7eb !important;
}

/* Phase Cards */
.phase-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.phase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.phase-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phase-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.phase-design .phase-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.phase-develop .phase-number {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.phase-deploy .phase-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.phase-header h4 {
    margin: 0;
    color: #1f2937;
}

.phase-content {
    padding: 1.5rem;
    flex-grow: 1;
}

/* Phase Badge */
.phase-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.phase-badge.phase-design {
    background-color: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.phase-badge.phase-develop {
    background-color: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.phase-badge.phase-deploy {
    background-color: rgba(16, 185, 129, 0.15);
    color: #059669;
}

/* Stage Items */
.stages-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stage-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stage-item:hover {
    background-color: #f9fafb;
    border-color: #8b5cf6;
    transform: translateX(4px);
}

.stage-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.stage-content h6 {
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.stage-content p {
    margin-bottom: 0;
}

.text-phase-design {
    color: #6366f1;
}

.text-phase-develop {
    color: #d97706;
}

.text-phase-deploy {
    color: #059669;
}

/* Role Cards */
.role-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.role-card:hover {
    transform: translateY(-8px);
    border-color: #6366f1;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.role-card h5 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

/* Support Roles Grid */
.support-role {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #6366f1;
    transition: all 0.3s ease;
}

.support-role:hover {
    background-color: #f9fafb;
    transform: translateX(4px);
}

.support-role strong {
    color: #1f2937;
    display: block;
    margin-bottom: 0.25rem;
}

/* Phase Deep Dive */
.phase-deep-dive {
    border-left: 4px solid #6366f1;
    background: white !important;
}

.best-practice {
    background-color: rgba(16, 185, 129, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.best-practice h6 {
    color: #059669;
}

/* Pitfall Cards */
.pitfall-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

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

.pitfall-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pitfall-danger .pitfall-icon {
    color: #ef4444;
}

.solution-box {
    background-color: #f0fdf4;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #10b981;
    margin-top: 0.75rem;
}

.solution-box strong {
    color: #059669;
}

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

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

.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.timeline-content h5 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    margin-bottom: 0;
}

.timeline-content li {
    padding: 0.25rem 0;
}

/* Alert Styles */
.alert-custom {
    border-left: 4px solid;
    border-radius: 8px;
    padding: 1.25rem;
}

.alert-info.alert-custom {
    border-color: #0ea5e9;
    background-color: #f0f9fe;
}

.alert-warning.alert-custom {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

/* References Section */
.reference-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reference-item {
    border-left: 4px solid #6366f1;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.reference-item:hover {
    background-color: #f8f9fa;
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 8px;
}

.reference-item strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.reference-item .text-muted {
    line-height: 1.6;
    margin-top: 0.25rem;
}

.reference-item em {
    color: #6366f1;
    font-style: italic;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .section-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }
    
    .stage-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stage-number {
        width: 100%;
        text-align: center;
    }
    
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .resources-hero h1 {
        font-size: 1.75rem;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .toc-card .row {
        display: flex;
        flex-direction: column;
    }
    
    .phase-card {
        margin-bottom: 1rem;
    }
}

/* Diagram options styles */
.diagram-card { border: 1px solid rgba(15,23,42,0.04); }

.role-card { border: 1px solid rgba(15,23,42,0.04); border-radius: 8px; text-align: left; }
.role-card .role-icon { font-size: 1.25rem; }

