/* ===== EXTRACTED INLINE STYLES ===== */
/* Custom styles for logo images */
.deacon-ai-image {
    object-fit: contain !important;
    background: #F4ECD8 !important;
    padding: 15px !important; /* Reduced from 25px */
    width: 120% !important;
    height: 120% !important;
    transform: scale(1.20);
    margin: 0 auto !important;
    display: block !important;
}
.deacon-ai-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 150px !important; /* Reduced from 200px */
}
/* Superpower Framework image - same background as Deacon AI */
.superpower-image {
    width: 115% !important;
    height: 115% !important;
    object-fit: contain !important;
    background: #F4ECD8 !important;
    padding: 15px !important; /* Reduced from 25px */
    transform: scale(1.15);
    margin: 0 auto !important;
    display: block !important;
}
.superpower-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 150px !important; /* Reduced from 200px */
}
/* Increase GitHub logo size to 150% */
.github-logo-image {
    transform: scale(1.5) !important;
    width: 150% !important;
    height: 150% !important;
}

/* Reduce GenreBender logo size by 10% */
.genre-bender-image {
    transform: scale(0.9) !important;
    width: 90% !important;
    height: 90% !important;
}
/* Hero section spacing improvements */
.hero {
    padding: 80px 0 calc(40px - 40px) !important; /* Remove 40px from bottom */
    position: relative !important;
    z-index: 1 !important;
}

.hero-content {
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 3rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.hero-text {
    flex: 1 !important;
    max-width: 600px !important;
}

.hero-image {
    position: relative !important;
    z-index: 2 !important;
    margin-top: calc(2rem - 80px) !important; /* Move up by 80px total (40px + 40px) */
    margin-left: -40px !important; /* Move left by 40px */
}

.hero-title {
    margin-bottom: 1rem !important; /* Add more space below title */
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
}

.hero-subtitle {
    margin-bottom: 1.5rem !important; /* Add more space below subtitle */
}

.hero-rotating-text {
    margin: 1.5rem 0 !important; /* Add consistent spacing above and below rotating text */
}

.hero-cta {
    margin-top: 2rem !important; /* Add space above CTA buttons */
}
/* Reduce space below cards */
.featured-projects {
    padding: 20px 0 !important; /* Reduced from 27px */
}
/* Reduce spacing above Selected Projects */
.projects-container {
    padding: 0 2rem !important;
    margin-top: -80px !important; /* Reduced by 120px from 40px */
}
/* Match Bulletproof Credibility heading to other heading styles */
.companies .section-title {
    font-size: 2rem !important;
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important; /* Reduced from 2rem */
}
/* Additional spacing adjustments */
.companies {
    padding: 20px 0 !important; /* Reduced from 27px */
}
/* Reduce navigation bar height by half, center text vertically, and move down by 80% of bar height */
.header {
    top: calc(1.275rem + 32px) !important; /* Original position plus 80% of 40px height */
    padding: 0.375rem 0 !important; /* Half of 0.75rem */
    height: 40px !important; /* Set explicit height */
    display: flex !important;
    align-items: center !important;
}
.nav {
    padding: 0.375rem 0 !important; /* Half of 0.75rem */
    min-height: 40px !important; /* Ensure minimum height */
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}
.nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}
.nav-menu {
    display: flex !important;
    align-items: center !important;
}
.nav-item {
    display: flex !important;
    align-items: center !important;
}
.nav-link {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}
/* Hero rotating text animation - two lines - fixed positioning */
.hero-rotating-text {
    margin-top: 0.5rem;
    margin-bottom: 40px; /* Increased from 21px to accommodate button move */
    min-height: 100px; /* Increased from 63px for 3 lines */
}
.rotating-line {
    height: 1.54em;
    margin-bottom: 0.28em;
    position: relative;
}
.rotating-text {
    font-size: 1.47rem;
    color: #cbd5e1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.rotating-text.active {
    opacity: 1;
}

/* Button positioning adjustments */
.hero-cta {
    margin-top: 40px; /* Added to move buttons down */
}

/* Profile image scaling */
.profile-photo {
    transform: scale(1.15); /* Increased from original scale */
    margin-top: 20px; /* Adjusted spacing */
}
/* Reduce space after Deacon AI resilience text by half */
.deacon-resilience {
    margin-bottom: 0.5rem !important;
}
/* AI Tools section styles - reduced padding */
.ai-tools-section {
    padding: 40px 0; /* Reduced from 60px */
    background: #0f172a;
}
.ai-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.ai-tools-title {
    text-align: center;
    margin-bottom: 2rem; /* Reduced from 3rem */
    color: #f1f5f9;
    font-size: 2rem;
    font-weight: 600;
}
.ai-tools-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; /* Reduced from 2rem */
    font-size: 0.85rem; /* Reduced from 0.9rem */
    line-height: 1.4; /* Reduced from 1.5 */
}
.ai-tools-column h3 {
    color: #059669;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    font-size: 1.05rem; /* Reduced from 1.1rem */
}
.ai-tools-column p {
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
    color: #a8b5c7;
}
.ai-tools-column strong {
    color: #f1f5f9;
}
/* Skills section - 6 categories in 3 columns */
.skills {
    padding: 60px 0 40px 0 !important; /* Adjusted for better spacing */
}
.skills-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important; /* Reduced from 1.5rem */
}
.skill-category {
    padding: 1rem !important; /* Reduced from 1.5rem in style.css */
}
.skill-category-title {
    font-size: 1.1rem !important; /* Reduced from 1.25rem */
    margin-bottom: 0.5rem !important; /* Reduced from 0.75rem */
}
.skill-item {
    padding: 0.3rem 0.6rem !important; /* Reduced from 0.4rem 0.8rem */
    font-size: 0.75rem !important; /* Reduced from 0.8rem */
}
/* Section titles */
.section-title {
    margin-bottom: 1.5rem !important; /* Reduced from 2rem */
}
/* Project cards - reduced spacing */
.project-card {
    overflow: hidden;
}
.project-image {
    height: 150px !important; /* Reduced from 200px */
}
.project-content {
    padding: 1rem !important; /* Reduced from 1.5rem */
}
.project-title {
    margin-bottom: 0.4rem !important; /* Reduced from 0.5rem */
    font-size: 1.1rem !important;
}
.project-description {
    margin-bottom: 0.75rem !important; /* Reduced from 1rem */
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}
.project-tech {
    margin-bottom: 0.75rem !important; /* Reduced from 1rem */
    gap: 0.4rem !important; /* Reduced from 0.5rem */
}
.tech-tag {
    padding: 0.2rem 0.6rem !important; /* Reduced from 0.25rem 0.75rem */
    font-size: 0.7rem !important; /* Reduced from 0.75rem */
}
.project-hours {
    margin-top: 0.75rem !important; /* Reduced from 1rem */
}
.hours-box {
    padding: 0.25rem 0.5rem !important; /* Reduced from 0.3rem 0.6rem */
    font-size: 0.7rem !important; /* Reduced from 0.75rem */
}
/* Hero content spacing */
.hero-title {
    margin-bottom: 0.4rem !important; /* Reduced from 0.5rem */
    font-size: 2.5rem !important; /* Reduced from 3rem for better brevity */
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: visible !important;
    max-width: 100% !important;
}
.hero-subtitle {
    margin-bottom: 0.4rem !important; /* Reduced from 0.5rem */
    font-size: 1.25rem !important;
}
.hero-cta {
    gap: 0.75rem !important; /* Reduced from 1rem */
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 30px !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        text-align: center !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        text-align: center !important;
    }
    
    .hero-text {
        text-align: center !important;
    }
    
    .hero-cta {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .hero-rotating-text {
        text-align: center !important;
        min-height: 60px !important;
    }
    
    .rotating-text {
        text-align: center !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .hero-cta .btn {
        width: 100% !important;
        text-align: center !important;
    }
}
/* Button sizing */
.btn {
    padding: 0.6rem 1.25rem !important; /* Reduced from 0.75rem 1.5rem */
    font-size: 0.95rem !important; /* Reduced from 1rem */
}
/* Company logos - bigger and no frames */
.company-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.5rem !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 160px !important;
}

.company-logo:hover {
    transform: translateY(-5px) scale(1.05) !important;
}

.company-logo:focus {
    outline: 2px solid #059669 !important;
    outline-offset: 4px !important;
    border-radius: 8px !important;
}

.company-logo img {
    max-height: 100px !important;
    max-width: 160px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: brightness(1.1) !important;
    transition: filter 0.3s ease !important;
}

.company-logo:hover img {
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(5, 150, 105, 0.3)) !important;
}
/* Responsive design for AI tools section */
@media (max-width: 768px) {
    .ai-tools-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ai-tools-title {
        font-size: 1.5rem;
    }
    .ai-tools-column h3 {
        font-size: 1rem;
    }
    .ai-tools-column {
        font-size: 0.8rem;
    }
    .skills-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== NEW ENHANCED COMPONENTS ===== */
/* Enhanced spacing system - Increase by 40% */
.companies {
    padding: 31px 0 !important; /* Reduced by 25px from 56px */
}

.skills {
    padding: 35px 0 84px 0 !important; /* Reduced by 25px from 60px */
}

.featured-projects {
    padding: -8px 0 !important; /* Reduced by 120px from 112px */
}

.ai-tools-section {
    padding: 31px 0 !important; /* Reduced by 25px from 56px */
}

/* Section titles consistency and visual enhancement */
.section-title {
    margin-bottom: 3rem !important; /* Generous spacing for clean look */
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    position: relative !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 2px;
}

/* Company logos visual improvement */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.company-item {
    text-align: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.company-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.company-logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
}

.company-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.company-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.company-detail-hint {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
}

/* Screen reader only text */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip to content link */
.skip-link {
    position: absolute !important;
    top: -40px !important;
    left: 6px !important;
    background: #059669 !important;
    color: white !important;
    padding: 8px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: top 0.3s !important;
    z-index: 9999 !important;
}

.skip-link:focus {
    top: 6px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .company-logo {
        border: 2px solid white !important;
    }
    
    .skill-category {
        border-width: 2px !important;
    }
    
    .skill-item {
        border-width: 2px !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .rotating-text {
        animation: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== NEW SKILLS SECTION COMPONENTS ===== */
/* Metrics Hero Bar */
.metrics-hero-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 0 0 2.5rem 0; /* Reduced top margin, adjusted bottom */
    padding: 2rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-radius: 1rem;
    box-shadow: 0 8px 25px -5px rgba(5, 150, 105, 0.3);
}

.metric-highlight {
    text-align: center;
    color: white;
    padding: 1rem;
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.metric-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.95;
}

.metric-context {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Capability Categories */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 0; /* Removed extra top margin */
}

.capability-category {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.capability-category:hover {
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.4);
}

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

.capability-title {
    color: #f1f5f9;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.capability-impact-metric {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: inline-block;
}

.capability-summary {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.capability-toggle {
    background: transparent;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: space-between;
}

.capability-toggle:hover {
    border-color: #059669;
    color: #10b981;
    background: rgba(5, 150, 105, 0.05);
}

.capability-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.capability-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    animation: slideDown 0.3s ease;
}

.capability-details[hidden] {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skill Groups Within Categories */
.capability-skills {
    display: grid;
    gap: 1.5rem;
}

.skill-group {
    background: #0f172a;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #1e293b;
}

.skill-group h4 {
    color: #059669;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-group .skill-item {
    background: #064e3b;
    color: #6ee7b7;
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #065f46;
    margin: 0.25rem 0.25rem 0.25rem 0;
    display: inline-block;
    transition: all 0.3s ease;
}

.skill-item.skill-primary {
    background: #059669;
    color: white;
    border-color: #047857;
    font-weight: 600;
}

.skill-item:hover {
    background: #047857;
    color: #a7f3d0;
    transform: scale(1.02);
}

/* Responsive Design for New Skills Section */
@media (max-width: 768px) {
    .metrics-hero-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .capability-category {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .metrics-hero-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .metric-number {
        font-size: 1.75rem;
    }
    
    .capability-title {
        font-size: 1.1rem;
    }
}

/* ===== COMPANY TAGLINES ===== */
.company-tagline {
    display: block;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
    text-align: center;
    opacity: 1;
    transition: all 0.3s ease;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
    width: 100%;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 0 0 0.5rem 0.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(5, 150, 105, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: auto; /* Push to bottom */
}

.company-logo:hover .company-tagline {
    opacity: 1;
}

/* Ensure consistent logo display */
.companies-grid .company-logo {
    min-height: 140px !important;
}

/* Responsive adjustments for company logos */
@media (max-width: 1024px) {
    .companies-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .companies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .company-logo {
        height: 120px !important;
    }
}

@media (max-width: 480px) {
    .companies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .company-logo {
        height: 100px !important;
        padding: 1rem !important;
    }
    
    .company-tagline {
        font-size: 0.65rem;
    }
}

/* ===== PROFILE PHOTO STYLING ===== */
.profile-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .profile-photo {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        width: 150px;
        height: 150px;
    }
}

/* ===== PROJECT CARD ENHANCEMENTS ===== */
.project-impact-header {
    margin-bottom: 1rem;
}

.project-impact-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.impact-metric {
    font-size: 0.8rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-weight: 500;
}

.project-technical-summary {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-outcome {
    margin-top: 1rem;
}

.outcome-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.outcome-financial {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.outcome-efficiency {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.outcome-revenue {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.outcome-savings {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.outcome-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Tech tag primary style */
.tech-tag.tech-primary {
    background: #059669;
    color: white;
    border-color: #047857;
    font-weight: 600;
}

/* ===== FOOTER ENHANCEMENTS ===== */
.footer {
    background: #0f172a;
    padding: 2rem 0;
    border-top: 1px solid #1e293b;
}

.crt-prompt {
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #10b981;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.prompt-text {
    transition: opacity 0.5s ease;
}

/* ===== ENHANCED CTA STYLING ===== */
/* Primary CTA - vibrant and attention-grabbing */
.btn-primary {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.btn-primary::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.btn-primary:hover::before {
    left: 100% !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px -5px rgba(5, 150, 105, 0.4) !important;
    color: white !important;
}

/* Secondary CTA - subtle styling */
.btn-secondary {
    background: transparent !important;
    border: 2px solid #059669 !important;
    color: #059669 !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover {
    background: #059669 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px -5px rgba(5, 150, 105, 0.3) !important;
}

/* ===== HOVER EFFECTS ===== */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.3);
}

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

/* ===== COLOR PALETTE REFINEMENTS ===== */
:root {
    --primary-green: #059669;
    --primary-green-dark: #047857;
    --primary-green-light: #10b981;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
}

/* Apply consistent colors */
.hero-title .highlight {
    color: var(--primary-green-light);
}

.nav-link:hover {
    color: var(--primary-green-light);
}

/* ===== REMOVE !IMPORTANT FLAGS ===== */
/* Note: Many !important flags remain from the original CSS to override base styles.
   In a production environment, these should be refactored to use more specific selectors
   or reorganize the CSS cascade order */

/* ===== INCREASED WHITESPACE ===== */
section {
    padding: 4.2rem 0; /* 40% increase from 3rem */
}

.section-title {
    margin-bottom: 2.8rem; /* 40% increase from 2rem */
}

/* ===== LOGO FALLBACK ===== */
.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
/* Focus states for interactive elements */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.skill-item {
    background: #064e3b;
    color: #a7f3d0; /* Improved contrast */
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Use will-change sparingly for elements that will animate */
.rotating-text {
    will-change: opacity;
}

.capability-toggle .toggle-icon {
    will-change: transform;
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE DESIGN ===== */
/* Tablet landscape */
@media (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Tablet portrait and mobile landscape */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 1rem !important;
    }
    
    /* Hero section */
    .hero-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    
    .hero-image {
        margin-top: 2rem !important;
        order: -1 !important; /* Move image above text on mobile */
    }
    
    /* Companies section */
    .companies {
        padding: 40px 0 !important;
    }
    
    .companies-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Skills section */
    .skills {
        padding: 60px 0 !important;
    }
    
    .metrics-hero-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
    }
    
    .metric-number {
        font-size: 2rem !important;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .capability-category {
        padding: 1.5rem !important;
    }
    
    /* Projects section */
    .featured-projects {
        padding: 60px 0 !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* AI Tools section */
    .ai-tools-section {
        padding: 40px 0 !important;
    }
    
    .ai-tools-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    /* Global padding adjustments */
    section {
        padding: 2.5rem 0 !important;
    }
    
    /* Info banner */
    .info-banner {
        font-size: 0.65rem !important;
        padding: 0.75rem 0.5rem !important;
    }
    
    /* Navigation */
    .header {
        padding: 0.5rem 0 !important;
    }
    
    .nav-logo {
        font-size: 1.1rem !important;
    }
    
    /* Hero section */
    .hero {
        padding: 50px 0 30px !important;
    }
    
    .hero-container {
        padding: 0 1rem !important;
    }
    
    /* Companies section */
    .companies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .company-logo {
        height: 100px !important;
        padding: 0.75rem !important;
    }
    
    .company-logo img {
        max-height: 40px !important;
    }
    
    .company-tagline {
        font-size: 0.85rem;
        color: #10b981;
        margin-top: 1rem;
        text-align: center;
        font-weight: 600;
        opacity: 1;
        transition: color 0.3s ease;
        padding: 0 1rem;
    }

    .company-logo:hover .company-tagline {
        color: #059669;
    }
    
    .metric-label {
        font-size: 0.9rem !important;
    }
    
    .metric-context {
        font-size: 0.75rem !important;
    }
    
    .capability-title {
        font-size: 1.1rem !important;
    }
    
    .capability-impact-metric {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .capability-summary {
        font-size: 0.85rem !important;
    }
    
    .capability-toggle {
        font-size: 0.85rem !important;
        padding: 0.6rem 1rem !important;
    }
    
    /* Projects section */
    .project-title {
        font-size: 1rem !important;
    }
    
    .project-impact-metrics {
        gap: 0.5rem !important;
    }
    
    .impact-metric {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.5rem !important;
    }
    
    .project-technical-summary {
        font-size: 0.85rem !important;
    }
    
    .tech-tag {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.5rem !important;
    }
    
    .outcome-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    /* AI Tools section */
    .ai-tools-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .ai-tools-column h3 {
        font-size: 0.95rem !important;
    }
    
    .ai-tools-column p {
        font-size: 0.8rem !important;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0 !important;
    }
    
    .crt-prompt {
        font-size: 0.85rem !important;
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.3rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .companies-grid {
        grid-template-columns: 1fr !important;
    }
    
    .metric-number {
        font-size: 1.5rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
}

/* Ensure proper text wrapping on mobile */
@media (max-width: 768px) {
    h1, h2, h3, h4, h5, h6, p, span {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-title {
        white-space: normal !important;
    }
}

/* Fix horizontal scrolling issues */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    .hero-container,
    .companies-container,
    .skills-container,
    .projects-container,
    .ai-tools-container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* ===== FIREWORKS CONTAINER FIX ===== */
.fireworks-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

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

.ascii-firework {
    position: absolute !important;
    font-family: monospace !important;
    line-height: 1 !important;
    white-space: pre !important;
    pointer-events: none !important;
    color: #10b981 !important;
    font-size: 0.8rem !important;
    opacity: 0 !important;
}

/* BeOS-style Modal */
.beos-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.beos-modal-overlay.active {
    display: flex;
}

.beos-modal {
    background: #d8d8d8;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    font-family: 'Helvetica', 'Arial', sans-serif;
}

.beos-modal-titlebar {
    background: linear-gradient(to bottom, #ffeb3b 0%, #fdd835 100%);
    border-bottom: 2px solid #000;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    height: 28px;
}

.beos-modal-title {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin: 0;
    flex: 1;
}

.beos-modal-close {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 2px solid #000;
    cursor: pointer;
    position: relative;
    margin-left: 8px;
}

.beos-modal-close:hover {
    background: #a0a0a0;
}

.beos-modal-close::before,
.beos-modal-close::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: #000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.beos-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.beos-modal-content {
    background: #f0f0f0;
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    color: #000;
}

.beos-modal-section {
    margin-bottom: 20px;
    padding: 12px;
    background: #e8e8e8;
    border: 1px solid #b0b0b0;
}

.beos-modal-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000;
    border-bottom: 1px solid #a0a0a0;
    padding-bottom: 4px;
}

.beos-modal-section p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
}

.beos-modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beos-modal-section li {
    font-size: 14px;
    padding: 4px 0;
    color: #333;
    position: relative;
    padding-left: 16px;
}

.beos-modal-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #666;
}

.beos-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #b0b0b0;
    margin-bottom: 16px;
}

.beos-modal-logo img {
    max-width: 120px;
    max-height: 80px;
    filter: none;
}

@media (max-width: 768px) {
    .beos-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .beos-modal-content {
        padding: 12px;
    }
}
