/* About Page Specific Styles */

/* Profile Image Container */
.profile-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: var(--bg-light);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Social Media Icons Section */
.social-media-icons {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 0 0 15px 15px;
    text-align: center;
}

.social-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.social-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: white;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.social-icons-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Larger social buttons for the about page */
.profile-social-large .social-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.profile-social-large .social-button:hover {
    transform: translateY(-5px);
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Specific social network colors on hover */
.profile-social-large .social-linkedin:hover {
    color: #0077B5;
    border-color: #0077B5;
}

.profile-social-large .social-github:hover {
    color: #333;
    border-color: #333;
}

.profile-social-large .social-twitter:hover, 
.profile-social-large .social-xtwitter:hover {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.profile-social-large .social-facebook:hover {
    color: #1877F2;
    border-color: #1877F2;
}

.profile-social-large .social-instagram:hover {
    color: #E4405F;
    border-color: #E4405F;
}

.profile-social-large .social-youtube:hover {
    color: #FF0000;
    border-color: #FF0000;
}

.profile-social-large .social-dribbble:hover {
    color: #EA4C89;
    border-color: #EA4C89;
}

.profile-social-large .social-behance:hover {
    color: #1769FF;
    border-color: #1769FF;
}

.profile-social-large .social-whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-social-large .social-button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .profile-social-large .social-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .social-icons-grid {
        gap: 10px;
    }
}

/* ---------- Skills Section Styles ---------- */
.skills-section {
    padding: 40px 0;
    background-color: var(--bg-light, #f9f9f9); /* Fallback if CSS var not defined */
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-light, #333);
    position: relative;
    padding-bottom: 10px;
}

.skills-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color, #007bff);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 900px; /* Limit width for better readability */
    margin: 0 auto;
}

.skill-item {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius-md, 8px);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md, 0 4px 8px rgba(0,0,0,0.1));
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-name {
    font-size: 0.95rem;
    color: var(--text-light, #333);
}

.skill-percentage {
    font-size: 0.9rem;
    color: var(--primary-color, #007bff);
}

.skill-bar {
    width: 100%;
    height: 12px; /* Increased height for better visibility */
    background-color: var(--gray-200, #e9ecef);
    border-radius: var(--border-radius-sm, 4px); /* Rounded corners for the bar */
    overflow: hidden; /* Ensures skill-level stays within bounds */
    position: relative; /* For potential future animations or pseudo-elements */
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color, #007bff);
    border-radius: var(--border-radius-sm, 4px); /* Match parent rounding */
    transition: width 0.8s ease-in-out; /* Smooth animation for width change */
    display: block; /* Ensure it behaves as a block */
}

/* If skills-section is inside another container with padding, adjust this accordingly */
/* Example of responsive adjustments for skills if needed */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr; /* Stack skills on smaller screens */
    }
    .skills-section h2 {
        font-size: 1.8rem;
    }
}

/* END Skills Section Styles */

/* ---------- Experience Section Styles (Timeline) ---------- */
.experience-education {
    /* This class wraps both experience and education, if they are meant to be side-by-side */
    /* display: grid; grid-template-columns: 1fr 1fr; gap: 40px; Remove if not needed */
    padding: 40px 0;
}

.experience-section, .education-section { /* Assuming .education-section might exist or be added later */
    margin-bottom: 40px;
}

.experience-section h2, .education-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-light, #333);
    position: relative;
    padding-bottom: 10px;
}

.experience-section h2::after, .education-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color, #007bff);
}

.timeline {
    position: relative;
    max-width: 700px; /* Adjust as needed */
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px; /* Position of the timeline bar */
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--gray-300, #dee2e6);
    border-radius: 2px;
}

[lang="ar"] .timeline::before {
    left: auto;
    right: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 50px; /* Space for the dot and line */
    background-color: #fff; /* Optional: card-like background for each item */
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 15px; /* RTL support: also add padding-right for LTR */
    border-radius: var(--border-radius-md, 8px);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 4px 8px rgba(0,0,0,0.1));
}

[lang="ar"] .timeline-item {
    padding-left: 15px;
    padding-right: 50px;
}

.timeline-dot {
    content: '';
    position: absolute;
    left: 12px; /* (20px of timeline bar - 16px/2 of dot width) - 4px/2 of timeline bar width */
    top: 20px; /* Adjust to align with text */
    width: 16px;
    height: 16px;
    background-color: var(--primary-color, #007bff);
    border: 3px solid #fff; /* Creates a border effect against timeline bar */
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 3px var(--primary-color, #007bff); /* Outer glow */
}

[lang="ar"] .timeline-dot {
    left: auto;
    right: 12px;
}

.timeline-content {
    position: relative;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--primary-dark, #0056b3);
}

.timeline-content h4 {
    font-size: 1rem;
    font-style: italic;
    color: var(--gray-700, #495057);
    margin-bottom: 8px;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--secondary-color, #6c757d);
    margin-bottom: 10px;
    display: block; /* Ensure it takes its own line if needed */
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light, #333);
    margin-bottom: 0;
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }
    [lang="ar"] .timeline::before {
        left: auto;
        right: 10px;
    }
    .timeline-item {
        padding-left: 35px;
    }
    [lang="ar"] .timeline-item {
        padding-left: 15px;
        padding-right: 35px;
    }
    .timeline-dot {
        left: 2px; /* (10px - 16px/2) */
    }
    [lang="ar"] .timeline-dot {
        left: auto;
        right: 2px;
    }
    .experience-section h2, .education-section h2 {
        font-size: 1.8rem;
    }
}
/* END Experience Section Styles */

/* WhatsApp Button - Large Profile Style */
.profile-whatsapp-large {
    margin: 15px auto 5px;
    max-width: 90%;
}

.profile-whatsapp-large a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* WhatsApp brand color */
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.profile-whatsapp-large a:hover {
    background-color: #1da851; /* Darker shade for hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

.profile-whatsapp-large svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

[lang="ar"] .profile-whatsapp-large svg {
    margin-right: 0;
    margin-left: 10px;
}

/* End WhatsApp Button Styles */

/* ---------- Dark Mode Styles ---------- */
.dark-mode .profile-image-container {
    background: var(--gray-800, #343a40);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dark-mode .social-media-icons {
    background: linear-gradient(135deg, var(--primary-dark, #3a56d4) 0%, var(--secondary-dark, #6008a0) 100%);
}

/* Dark mode styles for WhatsApp button */
.dark-mode .profile-whatsapp-large a {
    background-color: #1da851; /* Darker WhatsApp color for dark mode */
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    color: white;
}

.dark-mode .profile-whatsapp-large a:hover {
    background-color: #25D366; /* Original WhatsApp color on hover */
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

/* Dark mode styles for skills section */
.dark-mode .skills-section {
    background-color: var(--bg-dark, #121212);
}

.dark-mode .skills-section h2 {
    color: var(--text-dark, #f8f9fa);
}

.dark-mode .skill-item {
    background-color: var(--gray-800, #343a40);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .skill-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .skill-name {
    color: var(--text-dark, #f8f9fa);
}

.dark-mode .skill-percentage {
    color: var(--primary-light, #738eef);
}

.dark-mode .skill-bar {
    background-color: var(--gray-700, #495057);
}

.dark-mode .skill-level {
    background-color: var(--primary-light, #738eef);
}

/* Dark mode styles for experience timeline */
.dark-mode .experience-section h2, 
.dark-mode .education-section h2 {
    color: var(--text-dark, #f8f9fa);
}

.dark-mode .timeline::before {
    background-color: var(--gray-600, #6c757d);
}

.dark-mode .timeline-item {
    background-color: var(--gray-800, #343a40);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .timeline-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .timeline-dot {
    background-color: var(--primary-light, #738eef);
    border-color: var(--gray-800, #343a40);
    box-shadow: 0 0 0 3px var(--primary-light, #738eef);
}

.dark-mode .timeline-content h3 {
    color: var(--primary-light, #738eef);
}

.dark-mode .timeline-content h4 {
    color: var(--gray-400, #ced4da);
}

.dark-mode .timeline-date {
    color: var(--secondary-light, #8f3cc7);
}

.dark-mode .timeline-content p {
    color: var(--text-dark, #f8f9fa);
}

/* Dark mode styles for social buttons */
.dark-mode .profile-social-large .social-button {
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

.dark-mode .profile-social-large .social-button:hover {
    background: var(--gray-800, #343a40);
    border-color: var(--primary-light, #738eef);
}

/* END Dark Mode Styles */ 