/* Modern Enhancements for ALi Habbache Portfolio */
/* Add smooth scrolling and improved typography */

html {
    scroll-behavior: smooth;
}

body {
    color: #2c3e50;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* Fix Key Achievements spacing - reduce gap between header and bullet points */
.card-inner .card-wrap p {
    margin-bottom: 10px !important;
}

.card-inner .card-wrap ul {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 20px !important;
}

/* Optimize container width - 60% for better visual balance */
.container {
    max-width: 1400px !important;
    width: 60vw !important;
}

.card-inner {
    right: 15px !important;
    top: 15px !important;
    bottom: 15px !important;
}

.card-inner .card-wrap {
    padding: 30px 30px 30px 40px !important;
    max-width: none !important;
}

.card-inner .content {
    max-width: none !important;
}

.card-inner .content .row {
    margin: 0 !important;
}

.card-inner .content .row .col {
    padding: 30px 40px 30px 0 !important;
}

/* Ensure service items display 2 per row with equal heights */
.service-items {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.service-items .col.col-d-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Make service items fill their containers */
.service-items .col.col-d-6 .service-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Add extra padding to right column items */
.service-items .col.col-d-6:nth-child(even) {
    padding-left: 40px !important;
}

.service-items .col {
    box-sizing: border-box !important;
}

/* Emoji icons styling for all sections */
.emoji-icon {
    font-size: 32px !important;
    line-height: 1 !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
    display: block !important;
}

/* Ensure icons display properly */
.service-items .service-item .icon,
.fuct-items .fuct-item .icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

/* Ensure ALL service items have consistent bottom borders */
.service-items .col {
    position: relative !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 30px !important;
    margin-bottom: 30px !important;
}

/* Remove border from last two items (bottom row) */
.service-items .col:nth-last-child(-n+2) {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Ensure proper spacing for service items */
.service-items .service-item {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Fix Beyond Work section layout */
.fuct-items {
    display: flex !important;
    flex-wrap: wrap !important;
}

.fuct-items .col {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
    box-sizing: border-box !important;
}

.fuct-items .fuct-item {
    text-align: center !important;
}

.fuct-items .fuct-item .icon {
    margin: 0 auto !important;
}

/* Fix Resume section layout and styling */
.resume-items {
    width: 100% !important;
    max-width: 100% !important;
}

.resume-items .resume-item {
    width: 100% !important;
    max-width: 100% !important;
}

.resume-items .resume-item .date {
    background: #f0f0f0 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}

.resume-items .resume-item.active .date {
    background: #78cc6d !important;
    color: #fff !important;
    border: 1px solid #78cc6d !important;
}

.resume-items .resume-item .name,
.resume-items .resume-item .company,
.resume-items .resume-item p {
    max-width: 100% !important;
    width: 100% !important;
}

/* Ensure bottom border lines display for resume items - Simple approach */
.resume-items .resume-item {
    position: relative !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 30px !important;
    margin-bottom: 30px !important;
}

.resume-items .resume-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Fix Contact section width */
.content.contacts .info-list {
    width: 100% !important;
    max-width: 100% !important;
}

.content.contacts .info-list ul {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.content.contacts .info-list ul li {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    padding: 15px 0 !important;
}

.content.contacts .row .col {
    width: 100% !important;
    max-width: 100% !important;
}

/* Welcome Popup Styles */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.welcome-overlay.show {
    opacity: 1;
    visibility: visible;
}

.welcome-popup {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.welcome-overlay.show .welcome-popup {
    transform: scale(1);
    opacity: 1;
}

.close-welcome {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.close-welcome:hover {
    background: #f0f0f0;
    color: #333;
}

.welcome-content h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    color: #323232;
    font-weight: 700;
}

.welcome-content p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.welcome-cta {
    background: linear-gradient(135deg, rgba(120, 204, 109, 0.1) 0%, rgba(120, 204, 109, 0.05) 100%);
    border-left: 4px solid #78cc6d;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.welcome-cta p {
    margin: 0;
    font-size: 15px;
}

.welcome-cta a {
    color: #78cc6d;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.welcome-cta a:hover {
    border-bottom-color: #78cc6d;
}

.explore-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #78cc6d 0%, #6da066 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.explore-btn:hover {
    background: linear-gradient(135deg, #6da066 0%, #5d9056 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(120, 204, 109, 0.3);
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

@media (max-width: 560px) {
    .welcome-popup {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .welcome-content h2 {
        font-size: 24px;
    }
    
    .welcome-content p {
        font-size: 15px;
    }
}

/* Make text content wider */
.content .text-box,
.content p,
.info-list,
.resume-items {
    max-width: 100% !important;
    width: 100% !important;
}

/* Override responsive breakpoint restrictions */
@media (max-width: 1199px) {
    .container {
        max-width: 95vw !important;
    }
}

@media (max-width: 1023px) {
    .container {
        max-width: 95vw !important;
    }
}

@media (max-width: 560px) {
    .container {
        max-width: 100% !important;
    }
}

/* ============================================
   NUCLEAR OPTION: Remove ALL pseudo-elements and overlays from profile image
   ============================================ */

/* Remove gradient circle overlay AND 172x172 badge - ALL variations */
.card-started .profile .image:before,
.card-started .profile .image:after,
.card-started .profile .image::before,
.card-started .profile .image::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    content: none !important;
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    z-index: -99999 !important;
    pointer-events: none !important;
}

/* Hide any nested pseudo-elements */
.card-started .profile .image *:before,
.card-started .profile .image *:after,
.card-started .profile .image *::before,
.card-started .profile .image *::after {
    display: none !important;
    content: none !important;
    content: "" !important;
}

/* Ensure profile image container displays correctly */
.card-started .profile .image {
    margin: 80px 0 20px 0 !important;
    position: relative !important;
    display: inline-block !important;
    width: 146px !important;
    height: 146px !important;
    overflow: hidden !important;
    background: none !important;
}

/* Ensure the actual image is on top and displays correctly */
.card-started .profile .image img {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: 3px solid #fff !important;
    border-radius: 100% !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 999 !important;
    background: #fff !important;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(120, 204, 109, 0.6);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(120, 204, 109, 0.8);
}

/* Modern card shadows and transitions */
.card-started {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.card-inner {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
}

/* Enhanced profile section */
.card-started .profile .title {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.card-started .profile .subtitle {
    font-weight: 500;
}

/* Modern button styles */
.button {
    background: linear-gradient(135deg, #78cc6d 0%, #6da066 100%) !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(120, 204, 109, 0.3);
    transition: all 0.3s ease;
}

.button:hover {
    background: linear-gradient(135deg, #6da066 0%, #5d9056 100%) !important;
    box-shadow: 0 6px 20px rgba(120, 204, 109, 0.4);
    transform: translateY(-2px);
    color: #fff !important;
}

/* Fix navigation menu icon backgrounds - make them white/distinct */
.header .top-menu ul li a {
    background: #ffffff !important;
    transition: all 0.3s ease;
}

.header .top-menu ul li:hover a,
.header .top-menu ul li.active a {
    background: #f8f9fa !important;
}

.header .top-menu ul li a .icon {
    color: #323232 !important;
}

.header .top-menu ul li:hover a .icon,
.header .top-menu ul li.active a .icon {
    color: #78cc6d !important;
}

.header .top-menu ul li:hover a .link,
.header .top-menu ul li.active a .link {
    color: #78cc6d !important;
}

/* Enhanced content titles */
.content .title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a252f;
}

.content .title .first-word,
.content .title::first-letter {
    background: linear-gradient(135deg, #78cc6d 0%, #6da066 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern resume items */
.resume-items .resume-item {
    padding: 25px 0;
    transition: all 0.3s ease;
}

.resume-items .resume-item:hover {
    padding-left: 10px;
    background: rgba(120, 204, 109, 0.02);
    border-radius: 8px;
}

.resume-items .resume-item .date {
    background: linear-gradient(135deg, #78cc6d 0%, #6da066 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: none;
}

.resume-items .resume-item .name {
    font-size: 18px;
    font-weight: 600;
    color: #1a252f;
}

.resume-items .resume-item .company {
    font-size: 15px;
    color: #78cc6d;
    font-weight: 500;
}

/* Enhanced skills display */
.skills-list ul li .name {
    font-weight: 600;
    color: #1a252f;
}

.skills-list ul li .progress {
    height: 6px;
    border-radius: 10px;
    background: #e8f5e6;
}

.skills-list ul li .progress .percentage {
    border-radius: 10px;
    background: linear-gradient(90deg, #78cc6d 0%, #6da066 100%);
    box-shadow: 0 2px 8px rgba(120, 204, 109, 0.3);
}

/* Modern service items */
.service-items .service-item .icon {
    background: linear-gradient(135deg, #78cc6d 0%, #6da066 100%);
    box-shadow: 0 8px 20px rgba(120, 204, 109, 0.3);
    transition: all 0.3s ease;
}

.service-items .service-item:hover .icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(120, 204, 109, 0.4);
}

.service-items .service-item .name {
    font-weight: 600;
    color: #1a252f;
}

/* Enhanced work portfolio items */
.box-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.box-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.box-item .image {
    border-radius: 12px 12px 0 0;
}

.box-item .desc .name {
    font-weight: 600;
    color: #1a252f;
}

/* Modern form inputs */
input, textarea {
    border: 2px solid #e8f5e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #78cc6d;
    box-shadow: 0 0 0 3px rgba(120, 204, 109, 0.1);
}

/* Enhanced social icons */
.card-started .profile .social a {
    transition: all 0.3s ease;
}

.card-started .profile .social a:hover {
    transform: translateY(-3px);
}

.card-started .profile .social a .ion,
.card-started .profile .social a .fab,
.card-started .profile .social a .fas {
    font-size: 18px;
}

/* Enhanced info list */
.info-list ul li strong {
    background: linear-gradient(135deg, #78cc6d 0%, #6da066 100%);
    box-shadow: 0 2px 8px rgba(120, 204, 109, 0.2);
    font-weight: 600;
}

/* Modern gradient background */
.background.gradient {
    background: linear-gradient(135deg, #6da066 0%, #78cc6d 50%, #8dd67f 100%);
}

/* Enhanced bubble animations */
.bg-bubbles li {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Improved typography hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a252f;
}

p {
    color: #4a5568;
    line-height: 1.8;
}

/* Modern link styles */
a {
    transition: all 0.3s ease;
}

a:hover {
    color: #6da066;
}

/* Enhanced profile image */
.card-started .profile .image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.card-started .profile .image:hover img {
    transform: scale(1.05);
}

/* Modern pricing cards */
.pricing-items .pricing-item {
    transition: all 0.3s ease;
}

.pricing-items .pricing-item:hover {
    transform: translateY(-10px);
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .content .title {
        font-size: 20px;
    }
    
    .resume-items .resume-item .name {
        font-size: 16px;
    }
}

/* Accessibility improvements */
*:focus {
    outline: 2px solid #78cc6d;
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid #78cc6d;
    outline-offset: 2px;
}

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

.content {
    animation: fadeInUp 0.6s ease-out;
}

/* Print styles */
@media print {
    .header,
    .lnks,
    .background {
        display: none;
    }
    
    .card-inner {
        position: static;
        opacity: 1;
        visibility: visible;
    }
}

/* Made with Bob */


/* Testimonials / Recommendations Styling */
.content.testimonials {
    margin-top: 40px !important;
}

.content.testimonials .revs-item {
    background: #f9f9f9;
    border-left: 4px solid #78cc6d;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.content.testimonials .revs-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.content.testimonials .revs-item .text {
    margin-bottom: 20px;
}

.content.testimonials .revs-item .text .quote {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    position: relative;
    padding-left: 30px;
}

.content.testimonials .revs-item .text .quote:before {
    content: '"';
    font-size: 48px;
    color: #78cc6d;
    position: absolute;
    left: 0;
    top: -10px;
    font-family: Georgia, serif;
    line-height: 1;
}

.content.testimonials .revs-item .info {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.content.testimonials .revs-item .info .name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.content.testimonials .revs-item .info .company {
    font-size: 14px;
    color: #78cc6d;
    font-weight: 500;
}
