/*
Theme Name: ArifLive
Theme URI: https://ariflive.com
Author: Arif Muhammad
Author URI: https://ariflive.com
Description: A modern, minimalist WordPress theme for showcasing professional portfolio and digital profile.
Version: 3.2.3
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 8.0
Text Domain: ariflive
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

ArifLive WordPress Theme, Copyright 2025 Arif Muhammad
ArifLive is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   Enhanced Custom Styles for Luther-Inspired Design
   Version: 3.2.3
   ========================================================================== */

/* Global Outline Removal - Disable all outlines */
* {
    outline: none !important;
}

*:focus {
    outline: none !important;
}

*:focus-visible {
    outline: none !important;
}

/* Essential Typography Fallbacks */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-display: swap;
}

/* Enhanced H1 Typography for Case Study Pages */
.site-main h1,
main h1,
body h1 {
    font-size: 2.25rem; /* text-4xl */
    line-height: 1.3;
    font-weight: 700;
    color: #111827; /* text-gray-900 */
    letter-spacing: -0.025em; /* tracking-tight */
}

/* H1 margin-bottom for case study pages */
.single-case-studies h1,
.single-case-studies .site-main h1,
.single-case-studies main h1,
.single h1,
.single .site-main h1,
.single main h1,
.single-post h1,
.single-post .site-main h1,
.single-post main h1,
.category-case-studies h1,
.category-case-studies .site-main h1,
.category-case-studies main h1 {
    margin-bottom: 2rem; /* mb-8 */
}

/* Responsive H1 sizing for larger screens */
@media (min-width: 1024px) {
    .site-main h1,
    main h1,
    body h1 {
        font-size: 3rem; /* lg:text-5xl */
    }
}

/* Enhanced Ordered List Styling for Case Studies */
.site-main ol,
main ol,
.prose ol {
    counter-reset: list-counter;
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.site-main ol li,
main ol li,
.prose ol li {
    position: relative;
    counter-increment: list-counter;
    padding-left: 3rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #374151;
    font-size: 1.125rem;
}

.site-main ol li::before,
main ol li::before,
.prose ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #F29559, #ea580c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(242, 149, 89, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-main ol li:hover::before,
main ol li:hover::before,
.prose ol li:hover::before {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(242, 149, 89, 0.35);
}

/* Nested ordered lists */
.site-main ol ol,
main ol ol,
.prose ol ol {
    margin: 1rem 0 1rem 1rem;
    counter-reset: nested-counter;
}

.site-main ol ol li,
main ol ol li,
.prose ol ol li {
    counter-increment: nested-counter;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.site-main ol ol li::before,
main ol ol li::before,
.prose ol ol li::before {
    content: counter(list-counter) "." counter(nested-counter);
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
    background: linear-gradient(135deg, #6B7280, #4B5563);
}

/* Enhanced unordered list styling to complement ordered lists */
.site-main ul,
main ul,
.prose ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.site-main ul li,
main ul li,
.prose ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #374151;
    font-size: 1.125rem;
}

.site-main ul li::before,
main ul li::before,
.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, #F29559, #ea580c);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-main ul li:hover::before,
main ul li:hover::before,
.prose ul li:hover::before {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(242, 149, 89, 0.3);
}

/* List container styling */
.site-main ol,
.site-main ul,
main ol,
main ul,
.prose ol,
.prose ul {
    background: rgba(249, 250, 251, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-left: 4px solid #F29559;
    margin: 2rem 0;
}

/* List item spacing improvements */
.site-main ol li:last-child,
.site-main ul li:last-child,
main ol li:last-child,
main ul li:last-child,
.prose ol li:last-child,
.prose ul li:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .site-main ol li,
    .site-main ul li,
    main ol li,
    main ul li,
    .prose ol li,
    .prose ul li {
        padding-left: 2.5rem;
        font-size: 1rem;
    }
    
    .site-main ol li::before,
    main ol li::before,
    .prose ol li::before {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .site-main ol,
    .site-main ul,
    main ol,
    main ul,
    .prose ol,
    .prose ul {
        padding: 1rem 1rem 0.5rem 1rem;
        margin: 1.5rem 0;
    }
}

/* Enhanced Header Functionality */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background-color, box-shadow;
}

/* Enhanced Scroll Effect */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Mobile Menu Enhanced Animations */
#mobile-menu {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Hamburger Menu Animation */
#mobile-menu-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-toggle.menu-open svg {
    transform: rotate(90deg);
}

#mobile-menu-toggle svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Navigation Hover Effects */
#main-header nav a {
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F29559, #ea580c);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header nav a:hover::after {
    width: 80%;
}

#main-header nav a:hover {
    transform: translateY(-1px);
}

/* Social Links Enhanced Hover */
#main-header a[href*="linkedin"],
#main-header a[href*="github"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header a[href*="linkedin"]:hover,
#main-header a[href*="github"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 149, 89, 0.15);
}

/* CTA Button Enhanced Styling */
#main-header a[href*="contact"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header a[href*="contact"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 149, 89, 0.25);
}

#main-header a[href*="contact"]::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;
}

#main-header a[href*="contact"]:hover::before {
    left: 100%;
}

/* Logo Enhanced Hover Effect */
#main-header a[href*="home"],
#main-header a[href*="localhost"],
#main-header a[href*="ariflive"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header a[href*="home"]:hover,
#main-header a[href*="localhost"]:hover,
#main-header a[href*="ariflive"]:hover {
    transform: scale(1.02);
}

#main-header a[href*="home"] .logo-container,
#main-header a[href*="localhost"] .logo-container,
#main-header a[href*="ariflive"] .logo-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header a[href*="home"]:hover .logo-container,
#main-header a[href*="localhost"]:hover .logo-container,
#main-header a[href*="ariflive"]:hover .logo-container {
    transform: rotate(5deg);
    box-shadow: 0 8px 25px rgba(242, 149, 89, 0.3);
}

/* Logo Image Specific Styling */
#main-header img[src*="logo.svg"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header a:hover img[src*="logo.svg"] {
    transform: scale(1.1);
}

/* Enhanced Focus States */
#main-header a:focus,
#main-header button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 149, 89, 0.3);
    border-radius: 0.5rem;
}

/* Mobile Menu Enhanced Styling */
#mobile-menu a {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
}

#mobile-menu a:hover {
    background-color: rgba(242, 149, 89, 0.05);
    transform: translateX(4px);
}

/* Enhanced Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: #F29559;
    color: white;
    border-radius: 0.5rem;
    z-index: 9999;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(242, 149, 89, 0.3);
}

/* Performance Optimizations */
#main-header * {
    will-change: transform, opacity;
}

/* Print Styles */
@media print {
    #main-header {
        position: static;
        background: white;
        box-shadow: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Fonts Plugin Integration */
.fonts-plugin-active * {
    font-display: swap;
}

.fonts-plugin-inactive body,
.fonts-plugin-inactive h1,
.fonts-plugin-inactive h2,
.fonts-plugin-inactive h3,
.fonts-plugin-inactive h4,
.fonts-plugin-inactive h5,
.fonts-plugin-inactive h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navigation Menu Styling */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: inline-block;
}

.main-navigation a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #F29559;
}

.main-navigation .current-menu-item a {
    color: #F29559;
    font-weight: 600;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation li {
    margin: 0;
}

.mobile-navigation a {
    display: block;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-navigation a:hover {
    color: #F29559;
    background-color: rgba(242, 149, 89, 0.05);
}

.mobile-navigation .current-menu-item a {
    color: #F29559;
    font-weight: 600;
}

/* Utility Classes */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Focus Management */
html {
    scroll-behavior: smooth;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #F29559;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hero Image Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Responsive adjustments for hero section */
@media (max-width: 1024px) {
    .animate-float {
        animation: float 4s ease-in-out infinite;
    }
}

@media (max-width: 768px) {
    .animate-float {
        animation: float 3s ease-in-out infinite;
    }
}

