/* Critical fixes for Technical Expertise heading and Footer */

/* Footer fixes */
.footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.footer-logo {
    margin-right: 0 !important;
    margin-bottom: 10px !important;
}

.footer-text {
    margin-bottom: 15px !important;
}

.footer-social {
    margin-bottom: 20px !important;
}

/* Hide redundant back-to-top button in footer */
.footer-content .back-to-top {
    display: none !important;
}

/* Center Technical Expertise heading without the red line */
.skills-heading {
    text-align: center !important;
    margin: 45px auto 15px !important; /* Reduce top margin from 60px to 45px */
    display: block !important;
    position: relative !important;
    letter-spacing: 0.5px !important;
    padding-top: 10px !important; /* Add padding at the top */
}

.skills-heading:after {
    display: none !important; /* Remove the red line */
}

/* Header navigation links - remove box and just use red color */
.header-nav a {
    position: relative !important;
    transition: color 0.3s ease !important;
}

.header-nav a:focus, 
.header-nav a:active,
a:focus,
a:active {
    outline: none !important;
    box-shadow: none !important;
}

.header-nav a.active {
    color: #D12C2C !important;
    font-weight: 500 !important;
}

.header-nav a.active::after {
    content: "" !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background-color: #D12C2C !important;
    transform: scaleX(0.7) !important;
    opacity: 0.7 !important;
}

.header-nav a:hover {
    color: #D12C2C !important;
}

.header-nav a::before {
    content: "" !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background-color: #D12C2C !important;
    transform: scaleX(0) !important;
    transform-origin: right !important;
    transition: transform 0.3s ease !important;
    opacity: 0.5 !important;
}

.header-nav a:hover::before {
    transform: scaleX(0.7) !important;
    transform-origin: left !important;
}

/* Premium touch: Add subtle dot pattern to sections */
.about:before, .work:before, .contact:before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    pointer-events: none !important;
    opacity: 0.3 !important;
    z-index: 0 !important;
}

[data-theme="light"] .about:before, [data-theme="light"] .work:before, [data-theme="light"] .contact:before {
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px) !important;
}

/* Premium touch: Refined section headings */
.section-heading h2 {
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

.section-number {
    font-family: 'Montserrat', sans-serif !important;
    opacity: 0.7 !important;
    font-weight: 600 !important;
}

/* Reset work showcase and items to standard display */
.work-showcase {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    justify-content: center !important; /* Center cards when fewer than 3 */
}

/* Work item styles - completely revised hover effect */
.work-item {
    display: flex !important;
    flex-direction: column !important;
    width: calc(33.333% - 20px) !important;
    min-width: 300px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
    /* No transform transition needed since we're removing the lift */
}

/* Remove the hover transform that was causing the lift */
.work-item:hover {
    /* No transform here */
}

/* Card preview container - overflow hidden is crucial for the zoom effect */
.work-preview {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    min-height: 220px !important;
    background: var(--color-surface-2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Base image style with ultra-slow transitions */
.work-preview img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.8 !important; /* Slightly dimmed by default */
    transform: scale(1.0) !important; /* Start at normal scale */
    filter: blur(0px) !important; /* Start with no blur */
    transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
                filter 2.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 6s cubic-bezier(0.22, 1, 0.36, 1) !important; /* Extremely slow zoom */
}

/* Image effect on hover - very subtle zoom and blur */
.work-item:hover .work-preview img {
    opacity: 0.9 !important; /* Slightly brighter */
    filter: blur(1px) !important; /* Very subtle blur */
    transform: scale(1.03) !important; /* Super subtle zoom */
}

/* Simple overlay with very gradual fade-in */
.work-preview .work-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.2) !important; /* Even lighter overlay for subtlety */
    opacity: 0 !important;
    transition: opacity 2.5s cubic-bezier(0.22, 1, 0.36, 1) !important; /* Very slow fade-in */
}

/* Clean link button with slow transition */
.work-preview .work-overlay .work-link {
    padding: 8px 16px !important;
    background: rgba(209, 44, 44, 0.85) !important;
    color: white !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transform: translateY(5px) !important; /* Just a tiny bit below */
    opacity: 0 !important; /* Start invisible */
    transition: opacity 3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 2.5s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important; /* Very slow transitions */
}

/* Show overlay and link button very gradually on hover */
.work-item:hover .work-preview .work-overlay {
    opacity: 1 !important;
}

.work-item:hover .work-preview .work-overlay .work-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.work-preview .work-overlay .work-link:hover {
    background: rgba(209, 44, 44, 1) !important;
}

/* Status circle styling */
.work-preview .status-circle {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 2 !important;
}

/* Style for images that are missing or have no source */
.work-preview img:not([src]), 
.work-preview img[src=""] {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Display project name when image is missing */
.work-preview:has(img:not([src]), img[src=""]):after {
    content: attr(data-project) !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    color: var(--color-text) !important;
    padding: 1rem !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 2px solid rgba(209, 44, 44, 0.5) !important;
}

/* Fix tech items to be compact and professionally styled */
.project-tech {
    padding: 15px !important;
    background-color: #1A1A1A !important;
    border-radius: 0 0 12px 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    height: 120px !important; /* Fixed height for all cards */
    box-sizing: border-box !important;
    overflow-y: auto !important; /* Allow scrolling if too many items */
}

[data-theme="light"] .project-tech {
    background-color: rgba(245, 245, 245, 0.8) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.tech-label {
    display: block !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 12px !important;
    color: rgba(158, 158, 158, 0.8) !important;
    font-weight: 600 !important;
    position: relative !important;
    padding-left: 8px !important;
}

.tech-label:before {
    content: '' !important;
    position: absolute !important;
    width: 3px !important;
    height: 100% !important;
    background: linear-gradient(to bottom, #D12C2C, rgba(209, 44, 44, 0.5)) !important;
    left: 0 !important;
    border-radius: 2px !important;
}

.tech-stack {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

/* Clean up the portfolio tech section too */
.portfolio-tech {
    margin-top: 25px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* Clean up all specific project fixes */
.work-item .tech-stack {
    margin-top: 0 !important; /* Reset all margins */
}

.work-item .tech-label {
    position: static !important; /* Reset positioning */
}

/* Remove any custom class modifications */
.tech-label-moregadgets {
    margin-top: 0 !important;
}

/* Horizontal tech items with standardized height and premium finish */
.tech-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(40, 40, 40, 0.5) !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition: background 0.3s ease !important; /* Only transition background */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    height: 26px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

/* Remove ALL red effects from tech items on hover */
.tech-item:hover {
    background: rgba(50, 50, 50, 0.6) !important; /* Just slightly darker background */
    border-color: rgba(255, 255, 255, 0.07) !important; /* Keep original border color */
}

[data-theme="light"] .tech-item:hover {
    background: rgba(240, 240, 240, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.07) !important; /* Keep original border color */
}

/* Remove color change on hover for tech icons */
.tech-item:hover .tech-icon {
    /* Only opacity change, NO color change */
    opacity: 1 !important;
    color: inherit !important; /* Explicitly use inherited color */
}

/* Same for portfolio tech items */
.portfolio-tech .tech-item:hover {
    background: rgba(50, 50, 50, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

[data-theme="light"] .portfolio-tech .tech-item:hover {
    background: rgba(240, 240, 240, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.07) !important;
}

/* Ensure icons in portfolio tech items have no color change */
.portfolio-tech .tech-item:hover .tech-icon {
    opacity: 1 !important;
    color: inherit !important;
}

/* Premium touch: Add subtle hover animations to buttons */
.submit-btn, .work-link, .social-link, .back-to-top {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.submit-btn::before, .work-link::before, .social-link::before, .back-to-top::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.15), transparent) !important;
    transition: 0.5s !important;
    pointer-events: none !important;
}

.submit-btn:hover::before, .work-link:hover::before, .social-link:hover::before, .back-to-top:hover::before {
    left: 100% !important;
}

.submit-btn:hover, .work-link:hover, .social-link:hover, .back-to-top:hover {
    transform: translateY(-3px) scale(1.02) !important;
}

/* Premium touch: Enhanced hover states for skill cards */
.skill-item {
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.5s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.skill-item::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 200% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent) !important;
    transition: 0.7s !important;
    pointer-events: none !important;
}

.skill-item:hover::after {
    left: 100% !important;
}

.skill-item:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(209, 44, 44, 0.07) !important;
}

/* Add magnetic cursor effect to buttons and items */
@media (pointer: fine) {
    .submit-btn, .work-link, .social-link, .back-to-top, .skill-item {
        transform-style: preserve-3d !important;
        will-change: transform !important;
    }
}

/* Subtle scroll animations */
.fade-in {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.fade-in.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Grain texture overlay for depth without shadows */
body::after {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") !important;
    opacity: 0.015 !important;
    pointer-events: none !important;
    z-index: 9999 !important;
}

/* Smooth scrolling for page sections */
html {
    scroll-behavior: smooth !important;
}

/* Enhanced focus states for accessibility - without the box on navigation */
button:focus, input:focus, textarea:focus, a:focus:not(.header-nav a) {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgba(209, 44, 44, 0.5) !important;
}

/* Override default focus styles for ALL links */
*:focus {
    outline: none !important;
}

/* Premium image hover effects */
.project-image, .portfolio-image {
    overflow: hidden !important;
    border-radius: 8px !important;
    transform: translateZ(0) !important;
}

.project-image img, .portfolio-image img {
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.project-image:hover img, .portfolio-image:hover img {
    transform: scale(1.03) !important;
}

/* Animate section dividers */
.section-divider {
    position: relative !important;
    margin: 60px 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    width: 100% !important;
    overflow: hidden !important;
}

[data-theme="light"] .section-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent) !important;
}

.section-divider::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(209, 44, 44, 0.3), transparent) !important;
    animation: dividerGlow 4s ease-in-out infinite !important;
}

@keyframes dividerGlow {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* Personal signature flourish for footer */
.footer-signature {
    margin-top: 20px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic !important;
    opacity: 0.7 !important;
    position: relative !important;
    font-size: 14px !important;
}

.footer-signature::before, .footer-signature::after {
    content: '~' !important;
    display: inline-block !important;
    margin: 0 8px !important;
    opacity: 0.5 !important;
}

/* Refined scrollbar for premium feel */
::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1) !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(209, 44, 44, 0.5) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(209, 44, 44, 0.7) !important;
}

/* Subtle loading animation for images */
img {
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
}

img.loaded {
    opacity: 1 !important;
}

/* Text selection styling */
::selection {
    background: rgba(209, 44, 44, 0.2) !important;
    color: currentColor !important;
}

/* Subtle parallax effect for section backgrounds */
.section {
    transform-style: preserve-3d !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
}

/* Subtle text hover effects on project titles */
.project-title, .portfolio-title {
    position: relative !important;
    display: inline-block !important;
    transition: transform 0.3s ease !important;
}

.project-title::after, .portfolio-title::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(209, 44, 44, 0.5), transparent) !important;
    transform: scaleX(0) !important;
    transform-origin: bottom right !important;
    transition: transform 0.3s ease !important;
}

.project-title:hover::after, .portfolio-title:hover::after {
    transform: scaleX(1) !important;
    transform-origin: bottom left !important;
}

/* Enhanced header bar - removed shadow */
.header {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Remove hero section shadow */
.hero {
    box-shadow: none !important;
}

.hero-content {
    box-shadow: none !important;
}

/* Project card styles to ensure consistent height */
.project-card, .work-item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.project-content, .work-preview {
    flex: 1 0 auto !important; /* Don't shrink below content size */
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure project tech boxes are the same height */
.project-card .project-tech, .work-item .project-tech {
    margin-top: auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

/* Spotlight hover effect for call-to-action buttons */
.cta-button {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(45deg, #c92a2a, #d12c2c) !important;
}

.cta-button::before {
    content: "" !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%) !important;
    opacity: 0 !important;
    transform: scale(0.5) !important;
    transition: transform 0.6s ease, opacity 0.6s ease !important;
    pointer-events: none !important;
}

.cta-button:hover::before {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02) !important;
}

/* Tech stack styles to allow for varying numbers of items */
.work-item .tech-stack {
    margin-top: 28px !important; /* Add space for the label */
}

/* Specific fix for aligning all "Built with:" labels */
.work-item .tech-label {
    position: absolute !important;
    top: 15px !important; /* Fixed position from top of container */
}

/* Remove other specific fixes that are no longer needed */
.tech-label-moregadgets {
    margin-top: 0 !important;
}

/* Make work-item grid rows the same height */
.work-showcase {
    /* Reset to simpler layout */
    display: flex !important;
    flex-wrap: wrap !important;
}

/* New simple approach - ensure tech stacks have proper space */
.tech-stack {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

/* Portfolio tech items styling */
.portfolio-tech .tech-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(40, 40, 40, 0.5) !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition: all 0.3s ease !important;
    height: 26px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

.portfolio-tech .tech-item:hover {
    background: rgba(50, 50, 50, 0.6) !important;
    /* No border color change */
}

[data-theme="light"] .portfolio-tech .tech-item {
    background: rgba(250, 250, 250, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
}

[data-theme="light"] .portfolio-tech .tech-item:hover {
    background: rgba(240, 240, 240, 0.9) !important;
    /* No border color change */
}

/* Move quote carousel to bottom of About section */
.about-content {
    display: flex !important;
    flex-direction: column !important;
}

.about-text {
    order: 1 !important;
}

.skills-heading {
    order: 2 !important;
}

.skills-container {
    order: 3 !important;
    margin-bottom: 30px !important; /* Add space after skills */
}

/* Compact and refined quote carousel */
.quote-carousel {
    order: 4 !important;
    margin-top: 30px !important;
    width: 100% !important;
    max-width: 700px !important; /* Slightly reduced max-width */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 25px !important; /* Reduced padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
}

[data-theme="light"] .quote-carousel {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* More compact quotes */
.quotes-container {
    padding: 0 30px !important; /* Reduced padding */
}

.quote {
    font-size: 15px !important; /* Reduced font size */
    line-height: 1.5 !important; /* Tighter line height */
    margin-bottom: 10px !important; /* Less space at bottom */
    max-width: 650px !important; /* Reduced max-width */
    margin-left: auto !important;
    margin-right: auto !important;
}

.quote-author {
    font-size: 13px !important; /* Smaller author text */
    opacity: 0.7 !important; /* More subtle author attribution */
    margin-top: 8px !important; /* Less space above author */
}

/* Only right quote navigation button */
.quote-navigation {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important; /* Position on right side only */
    transform: translateY(-50%) !important;
    z-index: 5 !important;
}

/* Hide the previous button */
.quote-nav.prev {
    display: none !important;
}

.quote-nav {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 5px !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    margin-right: 10px !important; /* Add right margin */
}

.quote-nav:hover {
    color: rgba(209, 44, 44, 0.8) !important;
}

/* Restore tech icon styles */
.tech-icon {
    font-size: 14px !important;
    margin-bottom: 0 !important;
    opacity: 0.9 !important;
    height: 14px !important;
    width: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.3s ease !important;
}

/* Restore tech item text styles */
.tech-item span {
    font-size: 11px !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    line-height: 1 !important;
    opacity: 0.95 !important;
    transition: opacity 0.3s ease !important;
}

.tech-item:hover span {
    opacity: 1 !important;
}

/* Restore light theme styles */
[data-theme="light"] .tech-item {
    background: rgba(250, 250, 250, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
}

/* Restore light theme quote nav styles */
[data-theme="light"] .quote-nav {
    color: rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .quote-nav:hover {
    color: rgba(209, 44, 44, 0.8) !important;
}

/* Improve spacing in the About section */
.about-text p {
    margin-bottom: 25px !important; /* Add more space between paragraphs */
    line-height: 1.7 !important; /* Increase line height for better readability */
}

.personal-heading {
    margin-top: 20px !important;
    margin-bottom: 20px !important; /* More space after the heading */
}

.about-description {
    margin-top: 20px !important; /* Additional space before the final paragraph */
    margin-bottom: 50px !important; /* Add significant space after the last paragraph before Technical Expertise */
}

/* Apply the same styles to portfolio tech section */
.portfolio-highlight {
    position: relative !important;
    z-index: 1 !important;
}

/* Easter Egg at the bottom of About section - with reduced spacing */
.easter-egg-container {
    margin-top: 30px !important; /* Reduced from 60px to 30px */
    margin-bottom: 60px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.easter-egg-trigger {
    margin: 0 auto !important;
    text-align: center !important;
    cursor: pointer !important;
    position: relative !important;
    width: fit-content !important;
    transition: color 0.3s ease !important;
}

.easter-egg-trigger p {
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    background: rgba(40, 40, 40, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
}

.easter-egg-trigger:hover p {
    color: #e42d30 !important;
    background: rgba(50, 50, 50, 0.5) !important;
}

.easter-egg-trigger i {
    transition: transform 0.3s ease !important;
}

.easter-egg-trigger.active i {
    transform: rotate(180deg) !important;
}

.easter-egg-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out !important;
    width: 100% !important;
    max-width: 650px !important;
    opacity: 0 !important;
}

.easter-egg-content.active {
    max-height: 800px !important;
    opacity: 1 !important;
    margin-top: 30px !important;
}

/* Game Container Styling - Mario Theme */
.game-container {
    background: #121212 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Mario-themed pixel art decoration */
.game-container:before {
    content: '' !important;
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url('data:image/png;base64,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') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    opacity: 0.5 !important;
}

.game-intro {
    text-align: center !important;
    margin-bottom: 15px !important;
}

.game-intro h4 {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
    color: #e42d30 !important; /* Classic Mario red */
    font-family: 'Press Start 2P', 'Courier New', monospace !important;
    text-transform: uppercase !important;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: 1px !important;
}

.game-intro p {
    margin-bottom: 12px !important;
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
}

.game-controls-text kbd {
    background-color: #333 !important;
    border-radius: 3px !important;
    border: 1px solid #666 !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.2), 0 0 0 2px #333 inset !important;
    color: #fff !important;
    display: inline-block !important;
    font-family: monospace !important;
    font-size: 0.85em !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
    margin: 0 3px !important;
}

#game-canvas {
    background: #000 !important;
    width: 100% !important;
    height: 200px !important;
    border-radius: 8px !important;
    display: block !important;
    image-rendering: pixelated !important; /* For that retro feel */
    border: 2px solid #333 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4) inset !important;
}

.game-controls {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 15px !important;
}

#score {
    font-family: 'Courier New', monospace !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    color: #fbd000 !important; /* Mario coin gold */
    text-shadow: 1px 1px 0px #000 !important;
}

#start-game, #restart-game {
    background: #e42d30 !important; /* Mario red */
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    transition: background 0.3s ease, transform 0.1s ease !important;
    position: relative !important;
    box-shadow: 0 4px 0 #8b1914 !important; /* Darker red for 3D effect */
    transform: translateY(-2px) !important;
}

#start-game:hover, #restart-game:hover {
    background: #ff3c3f !important;
}

#start-game:active, #restart-game:active {
    transform: translateY(2px) !important;
    box-shadow: 0 0 0 #8b1914 !important;
}

#restart-game {
    display: none !important;
}

/* Ensure Easter Egg is positioned correctly at the bottom of About */
.about-content {
    display: flex !important;
    flex-direction: column !important;
}

.skills-container {
    order: 3 !important;
    margin-bottom: 30px !important; /* Add space after skills */
}

.easter-egg-trigger {
    margin: 30px auto 0 !important;
    text-align: center !important;
    cursor: pointer !important;
    position: relative !important;
    width: fit-content !important;
    transition: color 0.3s ease !important;
}

/* Add margin at the bottom of the About section */
.about .container:last-child {
    margin-bottom: 60px !important;
}