/* Professional Corporate Color Scheme for Salim Alaoui Portfolio */

:root {
    /* 
    TECH BLUE COLOR PALETTE:
    
    This color scheme features tech blue as the primary brand color:
    - Vibrant tech blue for modern, professional look
    - Deep charcoal for sophistication and readability
    - Clean, tech-focused combinations
    */
    
    /* Primary Colors - Tech Blue */
    --color-primary: #2563eb !important; /* Tech Blue - Primary Brand Color */
    --color-secondary: #2d3748 !important; /* Deep Charcoal Gray */
    --color-tertiary: #1a202c !important; /* Dark Charcoal */
    --color-accent: #1e40af !important; /* Darker Blue for Hover */
    
    /* Neutral Colors */
    --color-text-primary: #1a202c !important; /* Dark Charcoal */
    --color-text-secondary: #4a5568 !important; /* Medium Gray */
    --color-background: #ffffff !important; /* Pure White */
    --color-surface: #f7fafc !important; /* Light Gray */
    
    /* Professional Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    --gradient-secondary: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    --gradient-accent: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    --gradient-subtle: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
    
    /* Hover Effects */
    --gradient-hover: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    --gradient-button: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    
    /* Glassmorphism Colors */
    --glass-bg: rgba(255, 255, 255, 0.95) !important;
    --glass-border: rgba(37, 99, 235, 0.1) !important;
    --glass-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.1) !important;
    
    /* Portfolio Specific Colors */
    --portfolio-live-bg: #059669 !important; /* Professional Green */
    --portfolio-live-hover: #047857 !important;
    --portfolio-modal-bg: #2563eb !important; /* Tech Blue */
    --portfolio-modal-hover: #1e40af !important; /* Darker Blue */
    --portfolio-overlay-bg: rgba(37, 99, 235, 0.9) !important;
}

/* ============================================
   PROFESSIONAL SUBTITLE STYLES
   ============================================ */

.subtitle {
    color: var(--color-secondary) !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    margin-bottom: 20px !important;
    display: inline-block !important;
    position: relative !important;
    padding-bottom: 10px !important;
}

.subtitle::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 50px !important;
    height: 3px !important;
    background: var(--gradient-primary) !important;
    border-radius: 2px !important;
}

/* Center aligned subtitles */
.section-title.text-center .subtitle::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Left aligned subtitles */
.section-title.text-left .subtitle::after {
    left: 0 !important;
    transform: none !important;
}

/* ============================================
   PROFESSIONAL NAVIGATION
   ============================================ */

.primary-menu .nav-item.current .nav-link {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    position: relative !important;
}

.primary-menu .nav-item.current .nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: var(--gradient-primary) !important;
    border-radius: 1px !important;
}

.primary-menu .nav-item .nav-link:hover {
    color: var(--color-accent) !important;
    transform: translateY(-1px) !important;
    transition: all 0.3s ease !important;
}

/* ============================================
   PROFESSIONAL CARDS & COMPONENTS
   ============================================ */

.rn-service, .rn-testimonial, .rn-pricing {
    background: var(--color-background) !important;
    border: 1px solid rgba(37, 99, 235, 0.1) !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08) !important;
    transition: all 0.3s ease !important;
    border-radius: 12px !important;
}

.rn-service:hover, .rn-testimonial:hover, .rn-pricing:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(45, 55, 72, 0.12) !important;
    border-color: var(--color-accent) !important;
}

/* Service Icons */
.rn-service .icon {
    color: var(--color-primary) !important;
    font-size: 2.5rem !important;
    transition: all 0.3s ease !important;
}

.rn-service:hover .icon {
    color: white !important;
    transform: scale(1.05) !important;
}

/* Service Card Hover - Ensure text is visible */
.rn-service:hover .inner .content .title,
.rn-service:hover .inner .content .title a,
.rn-service:hover .inner .content .description,
.rn-service:hover .inner .content p {
    color: white !important;
}

.rn-service:hover .inner .icon svg {
    color: white !important;
    stroke: white !important;
}

/* ============================================
   PROFESSIONAL BUTTONS
   ============================================ */

.rn-btn {
    background: var(--gradient-button) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2) !important;
    color: white !important;
    font-weight: 500 !important;
}

.rn-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--gradient-hover) !important;
    transition: left 0.3s ease !important;
    z-index: -1 !important;
}

.rn-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(45, 55, 72, 0.3) !important;
    color: white !important;
}

.rn-btn:hover::before {
    left: 0 !important;
}

/* ============================================
   PORTFOLIO STYLES MOVED TO custom-portfolio.css
   ============================================ */

/* ============================================
   PROFESSIONAL HEADER
   ============================================ */

.header--fixed {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1) !important;
    box-shadow: 0 2px 20px rgba(37, 99, 235, 0.1) !important;
}

.logo img {
    transition: all 0.3s ease !important;
}

.logo:hover img {
    transform: scale(1.02) !important;
}

/* ============================================
   PROFESSIONAL FORMS
   ============================================ */

.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15) !important;
    background: var(--color-background) !important;
}

.form-group label {
    color: var(--color-text-primary) !important;
    font-weight: 600 !important;
}

/* ============================================
   PROFESSIONAL SOCIAL ICONS
   ============================================ */

.social-share li a {
    color: var(--color-primary) !important;
    transition: all 0.3s ease !important;
}

.social-share li a:hover {
    color: var(--color-accent) !important;
    transform: scale(1.1) !important;
}

/* ============================================
   PROFESSIONAL SECTION TITLES
   ============================================ */

.section-title .title {
    color: var(--color-text-primary) !important;
    font-weight: 700 !important;
    position: relative !important;
}

.section-title .title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background: var(--gradient-primary) !important;
    border-radius: 2px !important;
}

.section-title.text-center .title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* ============================================
   PROFESSIONAL PROGRESS BARS
   ============================================ */

.progress-bar {
    background: var(--gradient-primary) !important;
    position: relative !important;
    overflow: hidden !important;
}

.progress-bar::after {
    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;
    animation: shimmer 3s infinite !important;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================
   PROFESSIONAL MOBILE MENU
   ============================================ */

.popup-mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
}

.popup-mobile-menu .nav-item.current .nav-link {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
}

/* ============================================
   PROFESSIONAL LANGUAGE SWITCHER
   ============================================ */

.language-dropdown .btn {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.language-dropdown .btn:hover {
    background: var(--gradient-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(45, 55, 72, 0.3) !important;
}

/* ============================================
   PROFESSIONAL SKILL ICONS
   ============================================ */

.skill-share li img {
    transition: all 0.3s ease !important;
    filter: grayscale(100%) !important;
    opacity: 0.7 !important;
}

.skill-share li:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.05) !important;
}

/* ============================================
   PROFESSIONAL CONTACT AREA
   ============================================ */

.contact-about-area .title {
    color: var(--color-text-primary) !important;
}

.contact-about-area .description a {
    color: var(--color-primary) !important;
    transition: all 0.3s ease !important;
}

.contact-about-area .description a:hover {
    color: var(--color-accent) !important;
}

/* ============================================
   PROFESSIONAL SOCIAL AREA
   ============================================ */

.social-area .name {
    color: var(--color-text-primary) !important;
}

.social-icone a {
    color: var(--color-primary) !important;
    transition: all 0.3s ease !important;
}

.social-icone a:hover {
    color: var(--color-accent) !important;
    transform: scale(1.1) !important;
}

/* ============================================
   PROFESSIONAL MODAL STYLES
   ============================================ */

.modal-content {
    background: var(--color-background) !important;
    border: 1px solid rgba(37, 99, 235, 0.1) !important;
    border-radius: 12px !important;
}

.modal-header .close {
    color: var(--color-text-secondary) !important;
    transition: all 0.3s ease !important;
}

.modal-header .close:hover {
    color: var(--color-primary) !important;
    transform: rotate(90deg) !important;
}

/* ============================================
   PROFESSIONAL READ MORE BUTTON
   ============================================ */

.read-more-button {
    color: var(--color-primary) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.read-more-button::after {
    content: '→' !important;
    position: absolute !important;
    right: -20px !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

.read-more-button:hover {
    color: var(--color-accent) !important;
    transform: translateX(5px) !important;
}

.read-more-button:hover::after {
    opacity: 1 !important;
    right: -25px !important;
}

/* ============================================
   PROFESSIONAL FOOTER LINKS
   ============================================ */

.footer-area a {
    color: var(--color-text-secondary) !important;
    transition: all 0.3s ease !important;
}

.footer-area a:hover {
    color: var(--color-primary) !important;
    transform: translateY(-1px) !important;
}

/* ============================================
   PROFESSIONAL SOCIAL SHARE TITLE
   ============================================ */

.social-share-style-1 .title {
    color: var(--color-text-primary) !important;
    font-weight: 600 !important;
}

/* ============================================
   PROFESSIONAL CONTACT FORM SUBMIT
   ============================================ */

.contact-form-wrapper .rn-btn {
    background: var(--gradient-button) !important;
    position: relative !important;
    overflow: hidden !important;
}

.contact-form-wrapper .rn-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--gradient-hover) !important;
    transition: left 0.3s ease !important;
    z-index: -1 !important;
}

.contact-form-wrapper .rn-btn:hover::before {
    left: 0 !important;
}

/* ============================================
   PROFESSIONAL MODAL BUTTONS
   ============================================ */

.modal .rn-btn {
    background: var(--gradient-button) !important;
    transition: all 0.3s ease !important;
}

.modal .rn-btn:hover {
    background: var(--gradient-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(45, 55, 72, 0.3) !important;
}

/* ============================================
   PROFESSIONAL BACK TO TOP
   ============================================ */

.backto-top {
    background: var(--gradient-primary) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.backto-top:hover {
    background: var(--gradient-hover) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(45, 55, 72, 0.4) !important;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */

.floating-whatsapp {
    position: fixed;
    bottom: 110px;
    right: 30px;
    z-index: 9999;
    animation: floatWhatsApp 3s ease-in-out infinite;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

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

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.whatsapp-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover svg {
    transform: scale(1.05);
}

/* Floating Animation */
@keyframes floatWhatsApp {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Pulse Effect */
.whatsapp-btn::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #25D366, #128C7E, #25D366);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    animation: pulseWhatsApp 2s ease-in-out infinite;
}

@keyframes pulseWhatsApp {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 100px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    .floating-whatsapp {
        bottom: 90px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Accessibility */
.whatsapp-btn:focus {
    outline: 3px solid rgba(37, 211, 102, 0.3);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .whatsapp-btn {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    
    .whatsapp-btn:hover {
        box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
    }
}