/*
Theme Name: Dachi Msafi Premium
Theme URI: https://yourdomain.com/dachi-msafi
Author: Your Name
Description: A modern, premium, and mobile-responsive landing page theme with white background and red accent colors.
Version: 1.0.0
License: GPL v2 or later
Text Domain: dachi-msafi
*/

:root {
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --accent-red: #E63946;
    --accent-red-dark: #c1121f;
    --text-dark: #1A1A1A;
    --text-gray: #6C757D;
    --border-light: #E9ECEF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Profile Section */
.profile-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-red);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.02);
}

.profile-name {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Send Message Button */
.send-message-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-red);
    color: white !important;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.send-message-btn i {
    font-size: 1.1rem;
}

.send-message-btn:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation Menu - HORIZONTAL SCROLLABLE ON MOBILE */
.nav-wrapper {
    background: var(--bg-white);
    border-radius: 60px;
    padding: 0.5rem;
    margin: 2rem 0 3rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* Scrollable menu container */
.primary-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

/* Mobile: Horizontal scrollable menu */
@media (max-width: 768px) {
    .nav-wrapper {
        border-radius: 40px;
        padding: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-red) var(--border-light);
    }
    
    .nav-wrapper::-webkit-scrollbar {
        height: 4px;
    }
    
    .nav-wrapper::-webkit-scrollbar-track {
        background: var(--border-light);
        border-radius: 10px;
    }
    
    .nav-wrapper::-webkit-scrollbar-thumb {
        background: var(--accent-red);
        border-radius: 10px;
    }
    
    .primary-menu {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.25rem;
        width: max-content;
        min-width: 100%;
    }
    
    .primary-menu li {
        display: inline-block;
        flex-shrink: 0;
    }
    
    .primary-menu a {
        white-space: nowrap;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.primary-menu a i {
    font-size: 1rem;
    color: var(--accent-red);
}

.primary-menu a:hover {
    background: rgba(230, 57, 70, 0.1);
    color: var(--accent-red);
}

.primary-menu .current-menu-item a,
.primary-menu .current_page_item a {
    background: var(--accent-red);
    color: white !important;
}

.primary-menu .current-menu-item a i,
.primary-menu .current_page_item a i {
    color: white;
}

/* Content Area - Centered */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    text-align: center;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 1.1rem;
    text-align: center;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.page-content h2 {
    color: var(--accent-red);
}

/* Hide page titles */
.page-title, 
.entry-title,
.page-header h1 {
    display: none !important;
}

/* Skills & Services Cards */
.skills-list,
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-item,
.service-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.skill-item:hover,
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-red);
}

.skill-item i,
.service-item i {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.skill-item h3,
.service-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.skill-item p,
.service-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--accent-red);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--border-light);
}

.social-icons a:hover {
    background: var(--accent-red);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Contact Form */
.contact-form-custom {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-custom input,
.contact-form-custom textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-custom input:focus,
.contact-form-custom textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.contact-form-custom button {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-form-custom button:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
}

.form-success {
    color: #2ecc71;
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
}

.form-error {
    color: var(--accent-red);
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 8px;
}

/* Desktop menu - centered */
@media (min-width: 769px) {
    .primary-menu {
        justify-content: center;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .profile-image {
        width: 130px;
        height: 130px;
    }
    
    .send-message-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .page-content p {
        font-size: 1rem;
    }
    
    .skills-list,
    .services-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content, .skill-item, .service-item {
    animation: fadeInUp 0.5s ease-out;
}