/* ========== MOHAMMAD AL KARAOUNI PORTFOLIO - CSS ========== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ========== DESIGN TOKENS & RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

:root {
    /* Color Palette - Swiss style Monochrome + Blue Accent */
    --primary-color: #2563eb;
    --primary-rgb: 37, 99, 235;
    --accent-color: #3b82f6;
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-card: rgba(24, 24, 27, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --shadow: rgba(0, 0, 0, 0.4);
    --glow-color: rgba(37, 99, 235, 0.2);
    --card-glow: rgba(37, 99, 235, 0.02);
    --grad-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    
    /* Layout */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Archivo', sans-serif;
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-width: 1200px;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #09090b;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --shadow: rgba(0, 0, 0, 0.05);
    --glow-color: rgba(37, 99, 235, 0.08);
    --card-glow: rgba(37, 99, 235, 0.01);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ========== GEARS PRELOADER ========== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #09090b;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.gear-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
}

.gear {
    color: var(--primary-color);
    position: absolute;
    transform-origin: center;
}

.gear-large {
    font-size: 64px;
    left: 10px;
    top: 10px;
    animation: rotateCW 4s linear infinite;
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.4));
}

.gear-small {
    font-size: 36px;
    left: 60px;
    top: 55px;
    color: var(--accent-color);
    animation: rotateCCW 2s linear infinite;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

@keyframes rotateCW {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.loading-text {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 8px var(--primary-color); }
}


/* ========== STRUCTURE & UTILITIES ========== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--grad-primary);
    border-radius: 2px;
}

/* ========== NAVBAR & HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--primary-rgb), 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--border-color) 1px solid;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 11, 16, 0.85);
    box-shadow: 0 8px 30px var(--shadow);
}
body.light-mode .header.scrolled {
    background: rgba(255, 255, 255, 0.85);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo-link {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-text-highlight {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.theme-toggle, .lang-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

body.light-mode .theme-toggle, body.light-mode .lang-toggle-btn {
    background: rgba(0, 0, 0, 0.03);
}

.theme-toggle:hover, .lang-toggle-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
    transform: scale(1.08);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* RTL Layout support */
body.rtl {
    direction: rtl;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.rtl .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text .name {
    color: var(--primary-color);
    position: relative;
}

.typing-container {
    min-height: 48px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.typing-prefix {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.75rem;
}

body.rtl .typing-prefix {
    margin-right: 0;
    margin-left: 0.75rem;
}

#typed-role {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
    padding-right: 5px;
    animation: typingCursor 1s steps(2, start) infinite;
    text-shadow: 0 0 15px var(--glow-color);
}

@keyframes typingCursor {
    50% { border-color: transparent; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 25px var(--glow-color);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--glow-color);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.hero-socials {
    display: flex;
    gap: 1.25rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--grad-primary);
    color: #ffffff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px var(--glow-color);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--primary-color) 0%,
        #0080ff 35%,
        var(--accent-color) 70%,
        var(--primary-color) 100%
    );
    filter: blur(16px);
    opacity: 0.45;
    animation: ringSpin 20s linear infinite;
    pointer-events: none;
}

.hero-profile-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    padding: 8px;
    background: rgba(25, 27, 38, 0.8);
    border: 2px solid var(--border-color);
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow);
    transition: var(--transition);
}

.hero-profile-wrapper:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
}

.hero-profile-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== ABOUT ME SECTION ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-primary);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px var(--glow-color);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.glass-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 40px var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.glass-box::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    pointer-events: none;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== TIMELINE (EXPERIENCE & EDUCATION) ========== */
.experience-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

body.rtl .timeline {
    padding-left: 0;
    padding-right: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--bg-card) 95%);
}

body.rtl .timeline::before {
    left: auto;
    right: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--primary-color);
    z-index: 2;
    box-shadow: 0 0 10px var(--primary-color);
    transition: var(--transition);
}

body.rtl .timeline-dot {
    left: auto;
    right: -2.4rem;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    transform: scale(1.2);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.25rem;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-primary);
    opacity: 0.3;
    transition: var(--transition);
}

body.rtl .timeline-card::after {
    left: auto;
    right: 0;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px var(--card-glow);
}

.timeline-card:hover::after {
    opacity: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-role {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.timeline-period {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.timeline-company {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-desc {
    list-style: none;
    color: var(--text-secondary);
}

.timeline-desc li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

body.rtl .timeline-desc li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.timeline-desc li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

body.rtl .timeline-desc li::before {
    left: auto;
    right: 0;
}

.timeline-desc li:last-child {
    margin-bottom: 0;
}

/* ========== INTERACTIVE SKILL SPHERE ========== */
.skills-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.skills-spheres-container {
    position: relative;
    width: 100%;
    height: 480px;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.04) 0%, transparent 70%);
    border-radius: 50%;
    border: 1px dashed var(--border-color);
    overflow: hidden;
}

.sphere {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 10;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow);
    color: var(--text-primary);
}

.sphere-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sphere-icon {
    font-size: 1.65rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.skill-label {
    position: absolute;
    bottom: -22px;
    background: rgba(10, 11, 16, 0.9);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

body.light-mode .skill-label {
    background: #ffffff;
}

.sphere:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px var(--glow-color);
    z-index: 20;
}

.sphere:hover .sphere-icon {
    transform: scale(1.15);
    text-shadow: 0 0 10px var(--primary-color);
}

.sphere:hover .skill-label {
    opacity: 1;
    visibility: visible;
    bottom: -28px;
}

/* Animations flags */
.sphere[data-animate="float"] {
    animation: bubbleFloat 5s ease-in-out infinite;
}
.sphere[data-animate="float-y"] {
    animation: bubbleFloatY 6s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) translateX(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px) translateX(6px); }
}
@keyframes bubbleFloatY {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) translateX(0); }
    50% { transform: translate(-50%, -50%) translateY(8px) translateX(-8px); }
}

.skills-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.skills-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
}

.skills-category h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ========== SERVICES SECTION ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px var(--glow-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--grad-primary);
    color: #ffffff;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== CERTIFICATES SECTION ========== */
.certificates-slider-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 4rem;
}

.certificates-slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
    min-height: 280px;
}

.certificate-slide {
    flex: 0 0 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: none;
}

.certificate-slide.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.certificate-glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 15px 35px var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.certificate-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1.5px solid var(--border-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    box-shadow: 0 8px 20px var(--shadow);
}

.certificate-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.certificate-issuer {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.certificate-year {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.certificate-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.certificate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    color: var(--text-secondary);
}

/* Slider Controls */
.slider-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: scale(1.08);
}

.slider-dots {
    display: flex;
    gap: 0.65rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

/* ========== CONTACT SECTION ========== */
.contact-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.75rem 2rem;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px var(--glow-color);
}

.contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.contact-item h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 20px 40px var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-group {
    position: relative;
    margin-bottom: 2.25rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 0.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 0.25rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1rem;
}

body.rtl .form-group label {
    left: auto;
    right: 0.25rem;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -1rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
}

/* ========== TOAST NOTIFICATION ========== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
}

body.rtl .toast-container {
    right: auto;
    left: 2rem;
}

.toast {
    background: var(--bg-card);
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 10px 30px var(--glow-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.toast-message {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.footer {
    background: #06070a;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    color: var(--text-secondary);
}

body.light-mode .footer {
    background: #f1f5f9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 0.25rem;
}

body.rtl .footer-col ul li a:hover {
    padding-left: 0;
    padding-right: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ========== EXPERIENCE DETAIL MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 6, 9, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 680px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 50px var(--shadow);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

body.rtl .modal-close {
    right: auto;
    left: 1.5rem;
}

.modal-close:hover {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-company {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-body h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-list {
    list-style: none;
    color: var(--text-secondary);
}

.modal-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

body.rtl .modal-list li {
    padding-left: 0;
    padding-right: 1.75rem;
}

.modal-list li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 2px;
}

body.rtl .modal-list li::before {
    left: auto;
    right: 0;
}

/* ========== RESPONSIVENESS ========== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-text {
        order: 2;
    }
    .hero-image-container {
        order: 1;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons, .hero-socials {
        justify-content: center;
    }
    .typing-container {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .about-visual {
        order: 1;
    }
    .about-text {
        order: 2;
    }
    .skills-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .skills-spheres-container {
        max-width: 500px;
        height: 500px;
        margin: 0 auto;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 11, 16, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: 0.4s ease;
    }
    body.light-mode .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }
    .nav-menu.active {
        left: 0;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .hero-text h1 {
        font-size: 3rem;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .skills-list-grid {
        grid-template-columns: 1fr;
    }
    .certificates-slider-container {
        padding: 0 1rem;
    }
    .certificate-glass-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }
    .certificate-skills {
        justify-content: center;
    }
    .contact-form {
        padding: 2rem 1.5rem;
    }
    .modal-card {
        padding: 2rem 1.5rem;
    }
    .modal-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========== AVATAR FALLBACK STYLING ========== */
.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 6.5rem;
    transition: var(--transition);
}
.hero-profile-wrapper:hover .avatar-fallback {
    color: var(--accent-color);
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.2));
}

/* ========== USAID WORK READY NOW ASSIGNMENTS ========== */
#assignments {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -3rem auto 4rem auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.assignments-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 40px var(--shadow);
    backdrop-filter: blur(10px);
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.tabs-nav::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.tab-btn i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.tab-btn.active {
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Tab Panels */
.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.panel-inner-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.panel-inner-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}
body.rtl .panel-inner-title::after {
    left: auto;
    right: 0;
}

/* --- Goal Tracker Styles --- */
.goals-header-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}
.light-mode .goals-header-info {
    background: rgba(0, 0, 0, 0.01);
}

.date-badge {
    align-self: flex-start;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.long-term-goal {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}
body.rtl .long-term-goal {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    padding-left: 0;
    padding-right: 1.5rem;
}

.long-term-goal h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.long-term-goal p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.goal-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px var(--shadow);
    transition: var(--transition);
}

.goal-item:hover {
    border-color: rgba(37, 99, 235, 0.2);
}

.goal-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.goal-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.steps-table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.steps-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}
body.rtl .steps-table {
    text-align: right;
}

.steps-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 1.2rem;
    border-bottom: 2px solid var(--border-color);
    font-family: var(--font-heading);
}
.light-mode .steps-table th {
    background: rgba(0, 0, 0, 0.02);
}

.steps-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.steps-table tr:last-child td {
    border-bottom: none;
}

.steps-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}
.light-mode .steps-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.005);
}

/* --- Professional Emails Styles --- */
.email-toggle-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.email-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.email-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.email-btn.active {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    color: var(--accent-color);
}

.email-card {
    background: #09090b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}
.light-mode .email-card {
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.email-browser-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.light-mode .email-browser-header {
    background: rgba(0, 0, 0, 0.02);
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.email-subject-line {
    margin-left: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
body.rtl .email-subject-line {
    margin-left: 0;
    margin-right: 2rem;
}

.email-headers {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.header-field {
    display: flex;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.header-field:last-child {
    margin-bottom: 0;
}

.field-label {
    width: 80px;
    color: var(--text-muted);
    font-weight: 600;
}
body.rtl .field-label {
    width: 100px;
}

.field-value {
    color: var(--text-primary);
}

.email-body-content {
    background: #0d0e12;
    padding: 2.5rem;
    min-height: 350px;
    position: relative;
}
.light-mode .email-body-content {
    background: #fdfdfd;
}

.paper-lines {
    background: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 2rem;
    line-height: 2rem;
    padding-top: 0.5rem;
}
.light-mode .paper-lines {
    background: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 100% 2rem;
}

#email-text-content {
    font-size: 1.05rem;
    color: var(--text-primary);
    white-space: pre-line;
}

.scenario-context {
    background: rgba(255, 255, 255, 0.01);
    border-left: 3px solid var(--accent-color);
    padding: 1rem 1.2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
body.rtl .scenario-context {
    border-left: none;
    border-right: 3px solid var(--accent-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

/* --- Informational Interview Styles --- */
.interview-profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 25px var(--shadow);
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.meta-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.meta-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.meta-value {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
}

.interview-qa-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: rgba(37, 99, 235, 0.25);
}

.accordion-trigger {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    gap: 1rem;
    justify-content: space-between;
}
body.rtl .accordion-trigger {
    text-align: right;
}

.accordion-trigger .q-num {
    color: var(--primary-color);
    font-weight: 700;
}

.accordion-trigger .q-text {
    flex-grow: 1;
}

.accordion-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-item.open {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px var(--card-glow);
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem 3.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}
body.rtl .accordion-content {
    padding: 0 3.5rem 1.5rem 1.5rem;
}

/* --- Workplace Comic Styles --- */
.comic-principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.principle-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 12px 30px var(--shadow);
    display: flex;
    flex-direction: column;
}

.principle-card.good {
    border-top: 4px solid #10b981;
}
.principle-card.poor {
    border-top: 4px solid #ef4444;
}

.principle-badge-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.01);
    border-bottom: 1px solid var(--border-color);
}

.principle-badge-header i {
    font-size: 1.5rem;
}
.principle-card.good i { color: #10b981; }
.principle-card.poor i { color: #ef4444; }

.principle-badge-header h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.principle-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.principle-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.principle-content li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
body.rtl .principle-content li {
    padding-left: 0;
    padding-right: 1.8rem;
}

.principle-content li::before {
    content: '\f0a9';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
}
body.rtl .principle-content li::before {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

.principle-card.good li::before { color: #10b981; }
.principle-card.poor li::before { color: #ef4444; }

.principle-content li strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.principle-content li span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
}

.principle-message {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.principle-card.good .principle-message {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.principle-card.poor .principle-message {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Responsive Media Queries for Assignments */
@media (max-width: 992px) {
    .profile-meta-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .comic-principles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .assignments-wrapper {
        padding: 1.5rem;
    }
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    .goal-item {
        padding: 1.2rem;
    }
    .email-body-content {
        padding: 1.5rem;
    }
}

