/* About Page Specific Styles */

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 350px 1fr;
    }

    .profile-card-container {
        position: sticky;
        top: 20px;
    }
}

.profile-card-container {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.dark-mode .profile-card-container {
    background-color: var(--gray-800);
    box-shadow: var(--shadow-dark-md);
}

.profile-image-container {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.profile-card-container:hover .profile-image {
    transform: scale(1.05);
}

.profile-card-footer {
    padding: 25px;
    text-align: center;
}

.main-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-media-icons {
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.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;
}

/* 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: rgb(0 0 0);
    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 */
.profile-details-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-details, .bio-section, .what-i-do-section {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}
.dark-mode .profile-details, .dark-mode .bio-section, .dark-mode .what-i-do-section {
    background-color: var(--gray-800);
    box-shadow: var(--shadow-dark-md);
}

.profile-details h2, .bio-section h2, .what-i-do-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.profile-details h2::after, .bio-section h2::after, .what-i-do-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

[lang="ar"] .profile-details h2::after, [lang="ar"] .bio-section h2::after, [lang="ar"] .what-i-do-section h2::after {
    left: auto;
    right: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    background-color: var(--bg-very-light);
    padding: 15px;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

[lang="ar"] .info-item {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.info-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.info-item p, .info-item p a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
}
.dark-mode .info-item p, .dark-mode .info-item p a {
    color: var(--text-dark);
}

.info-item p a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.bio-section p, .what-i-do-section p {
    line-height: 1.7;
    color: var(--text-light);
}
.dark-mode .bio-section p, .dark-mode .what-i-do-section p {
    color: var(--text-dark);
}

@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-card-container,
.dark-mode .profile-details,
.dark-mode .bio-section,
.dark-mode .what-i-do-section {
    background-color: var(--gray-800);
    box-shadow: var(--shadow-dark-md);
}

.dark-mode .social-media-icons {
    border-top-color: var(--gray-700);
}

.dark-mode .info-item {
    background-color: var(--gray-900);
    border-color: var(--primary-light);
}

.dark-mode .info-item h4 {
    color: var(--gray-400);
}

.dark-mode .info-item p, .dark-mode .info-item p a {
    color: var(--text-dark);
}

.dark-mode .info-item p a:hover {
    color: var(--primary-light);
}

.dark-mode .bio-section p, .dark-mode .what-i-do-section p {
    color: var(--text-dark);
}

.dark-mode .profile-details h2::after, .dark-mode .bio-section h2::after, .dark-mode .what-i-do-section h2::after {
    background-color: var(--primary-light);
}

/* 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 */ 