/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - Youssef Adel Portfolio
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-main: #0b0f19;
    --bg-surface: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-glass: rgba(30, 41, 59, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(16, 185, 129, 0.3);

    --primary-emerald: #10b981;
    --primary-emerald-glow: rgba(16, 185, 129, 0.4);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.4);
    --accent-gold: #f59e0b;
    --accent-purple: #a855f7;
    --whatsapp-green: #25d366;

    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Typography */
    --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-en: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body.ltr-mode {
    font-family: var(--font-en);
    direction: ltr;
}

/* Background Ambient Orbs & Grid */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: orbPulse 10s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-emerald);
}

.orb-2 {
    bottom: 20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
}

.orb-3 {
    top: 50%;
    right: 25%;
    width: 400px;
    height: 400px;
    background: var(--accent-gold);
    opacity: 0.08;
}

@keyframes orbPulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(30px, -20px); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Layout Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: 6rem 0;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 1.25rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* Section Titles */
.section-title {
    margin-bottom: 3.5rem;
}

.subtitle-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-emerald);
    border: 1px solid var(--border-glow);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.title-heading {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.title-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-cyan));
    margin: 0.85rem auto 0;
    border-radius: 2px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-emerald) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    border-radius: 0.85rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-emerald), #059669);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline-glow:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-emerald);
    border-color: var(--primary-emerald);
    box-shadow: var(--shadow-glow);
}

.btn-sm {
    padding: 0.5rem 1.15rem;
    font-size: 0.875rem;
    border-radius: 0.65rem;
}

.btn-block {
    width: 100%;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, var(--primary-emerald), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-emerald);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.5rem 0.95rem;
    border-radius: 0.65rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-emerald);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: 9.5rem;
    padding-bottom: 5rem;
    position: relative;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 1.15rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--border-glow);
    border-radius: 2rem;
    color: var(--primary-emerald);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-emerald);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-cta {
    display: flex;
    gap: 1.15rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

/* Social Strip */
.social-strip {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.social-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-icon.fb:hover { background: #1877f2; border-color: #1877f2; }
.social-icon.in:hover { background: #0a66c2; border-color: #0a66c2; }
.social-icon.gh:hover { background: #24292e; border-color: #6e7681; }
.social-icon.wa:hover { background: #25d366; border-color: #25d366; }
.social-icon.em:hover { background: #ea4335; border-color: #ea4335; }
.social-icon.ph:hover { background: var(--primary-emerald); border-color: var(--primary-emerald); }

/* Hero Media Image Frame */
.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-frame-container {
    position: relative;
    width: 320px;
    height: 380px;
}

.glowing-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--primary-emerald), var(--accent-cyan), var(--accent-gold));
    filter: blur(15px);
    opacity: 0.5;
    z-index: 0;
    animation: spinGrad 12s infinite linear;
}

@keyframes spinGrad {
    0% { filter: blur(15px) hue-rotate(0deg); }
    100% { filter: blur(15px) hue-rotate(360deg); }
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1.75rem;
    overflow: hidden;
    border: 2px solid var(--border-glass);
    z-index: 1;
    background: var(--bg-surface);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: var(--transition-smooth);
}

.image-wrapper:hover .profile-img {
    transform: scale(1.05);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    padding: 0.75rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.floating-badge h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.floating-badge p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.badge-top-right {
    top: -20px;
    right: -30px;
}

.badge-bottom-left {
    bottom: -20px;
    left: -30px;
}

.icon-gold { color: var(--accent-gold); font-size: 1.35rem; }
.icon-cyan { color: var(--accent-cyan); font-size: 1.35rem; }
.icon-green { color: var(--primary-emerald); font-size: 1.35rem; }
.icon-purple { color: var(--accent-purple); font-size: 1.35rem; }
.icon-red { color: #ef4444; font-size: 1.35rem; }

/* Stats Bar */
.stats-bar {
    padding: 2.5rem 0;
    position: relative;
    z-index: 2;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-emerald);
    border: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
}

.main-bio-card {
    padding: 2.5rem;
    position: relative;
}

.bio-icon-quote {
    font-size: 2.5rem;
    color: rgba(16, 185, 129, 0.15);
    position: absolute;
    top: 1.5rem;
    left: 2rem;
}

body.rtl-mode .bio-icon-quote {
    left: auto;
    right: 2rem;
}

.bio-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 2rem;
}

.education-highlight {
    display: flex;
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.edu-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.edu-details h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.edu-degree {
    font-size: 0.9rem;
    color: var(--primary-emerald);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.edu-focus {
    font-size: 0.825rem;
    color: var(--text-muted);
    display: block;
}

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

.pillar-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.pillar-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--primary-emerald); }
.pillar-icon.cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }
.pillar-icon.amber { background: rgba(245, 158, 11, 0.1); color: var(--accent-gold); }
.pillar-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }

.pillar-card h4 {
    font-size: 1rem;
    font-weight: 700;
}

.pillar-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-emerald), var(--accent-cyan));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 50%;
    box-sizing: border-box;
    z-index: 2;
}

/* LTR Positioning */
body.ltr-mode .timeline-item.left {
    align-self: flex-start;
    padding-right: 2.5rem;
    padding-left: 0;
}

body.ltr-mode .timeline-item.right {
    align-self: flex-end;
    padding-left: 2.5rem;
    padding-right: 0;
}

body.ltr-mode .timeline-item.left .timeline-dot {
    right: -21px;
    left: auto;
}

body.ltr-mode .timeline-item.right .timeline-dot {
    left: -21px;
    right: auto;
}

/* RTL Positioning */
body.rtl-mode .timeline-item.left {
    align-self: flex-start;
    padding-left: 2.5rem;
    padding-right: 0;
}

body.rtl-mode .timeline-item.right {
    align-self: flex-end;
    padding-right: 2.5rem;
    padding-left: 0;
}

body.rtl-mode .timeline-item.left .timeline-dot {
    left: -21px;
    right: auto;
}

body.rtl-mode .timeline-item.right .timeline-dot {
    right: -21px;
    left: auto;
}

.timeline-dot {
    position: absolute;
    width: 42px;
    height: 42px;
    top: 24px;
    background: var(--bg-surface);
    border: 2px solid var(--primary-emerald);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-emerald);
    box-shadow: var(--shadow-glow);
}

.timeline-content {
    padding: 2rem;
}

.timeline-header {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-primary { background: rgba(16, 185, 129, 0.15); color: var(--primary-emerald); }
.badge-accent { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.badge-outline { border: 1px solid var(--border-glass); color: var(--text-secondary); }

.timeline-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.company-name {
    font-size: 1rem;
    color: var(--primary-emerald);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.program-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.timeline-bullets li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-right: 1.25rem;
}

body.ltr-mode .timeline-bullets li {
    padding-right: 0;
    padding-left: 1.25rem;
}

.timeline-bullets li::before {
    content: '▹';
    position: absolute;
    right: 0;
    color: var(--primary-emerald);
    font-weight: bold;
}

body.ltr-mode .timeline-bullets li::before {
    right: auto;
    left: 0;
}

/* Projects Section */
.projects-grid {
    max-width: 900px;
    margin: 0 auto;
}

.project-card.featured {
    padding: 2.5rem;
    border: 1px solid var(--border-glow);
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(15, 23, 42, 0.7));
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.project-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.75rem;
}

.project-tag {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 1rem;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.project-cat {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.project-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    border-radius: 0.85rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.highlight-item i {
    color: var(--primary-emerald);
    margin-top: 0.2rem;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tech-badge {
    padding: 0.35rem 0.95rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    font-size: 0.825rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Skills Section */
.skills-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill-category-card {
    padding: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-glass);
}

.category-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.skill-pill {
    padding: 0.5rem 1rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.skill-pill:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-emerald);
    border-color: var(--border-glow);
}

.soft-skills-card {
    padding: 1.75rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.soft-col h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;

}

.soft-col p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.soft-divider {
    width: 1px;
    height: 50px;
    background: var(--border-glass);
}

/* Certifications Section */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.cert-badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.cert-badge-icon.cisco { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.cert-badge-icon.ueepc { background: rgba(16, 185, 129, 0.1); color: var(--primary-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.cert-badge-icon.eng { background: rgba(245, 158, 11, 0.1); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.3); }

.cert-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cert-issuer {
    font-size: 0.875rem;
    color: var(--primary-emerald);
    margin-bottom: 0.65rem;
    font-weight: 600;
}

.cert-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.775rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.contact-card {
    padding: 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
}

.c-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.wa-card .c-icon { background: rgba(37, 211, 102, 0.15); color: var(--whatsapp-green); border-color: var(--whatsapp-green); }
.phone-card .c-icon { background: rgba(16, 185, 129, 0.15); color: var(--primary-emerald); }
.mail-card .c-icon { background: rgba(234, 67, 53, 0.15); color: #ea4335; }

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

.c-val {
    font-size: 0.9rem;
    font-weight: 700;
}

.c-arrow {
    margin-right: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

body.ltr-mode .c-arrow {
    margin-right: 0;
    margin-left: auto;
}

.contact-card:hover .c-arrow {
    color: var(--primary-emerald);
    transform: translate(-3px, -3px);
}

body.ltr-mode .contact-card:hover .c-arrow {
    transform: translate(3px, -3px);
}

/* Contact Form */
.contact-form-container {
    padding: 2.25rem;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-emerald);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-glass);
    background: rgba(11, 15, 25, 0.95);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-emerald);
}

/* Floating WhatsApp Button */
.float-wa-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: var(--whatsapp-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition-smooth);
}

body.ltr-mode .float-wa-btn {
    left: auto;
    right: 2rem;
}

.float-wa-btn:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.wa-tooltip {
    position: absolute;
    right: 70px;
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid var(--border-glass);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-fast);
}

body.ltr-mode .wa-tooltip {
    right: auto;
    left: 70px;
}

.float-wa-btn:hover .wa-tooltip {
    opacity: 1;
}

/* CV Modal Viewer */
.cv-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.cv-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.cv-modal-card {
    width: 100%;
    max-width: 950px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-glow);
    overflow: hidden;

}

.cv-modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(17, 24, 39, 0.9);
}

.cv-modal-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cv-modal-title h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.cv-modal-title p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cv-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cv-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.cv-modal-close:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.cv-modal-body {
    flex: 1;
    background: #1e293b;
    overflow: hidden;
}

.cv-pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.cv-modal-footer {
    padding: 0.85rem 1.75rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(17, 24, 39, 0.9);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .social-strip {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 75px);
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-smooth);
        border-left: 1px solid var(--border-glass);
    }

    body.ltr-mode .nav-menu {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--border-glass);
    }

    .nav-menu.active {
        right: 0;
    }

    body.ltr-mode .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .timeline::after {
        left: 20px;
        transform: none;
    }

    body.rtl-mode .timeline::after {
        left: auto;
        right: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100% !important;
        align-self: stretch !important;
    }

    body.ltr-mode .timeline-item {
        padding-left: 3.5rem !important;
        padding-right: 0 !important;
    }

    body.rtl-mode .timeline-item {
        padding-right: 3.5rem !important;
        padding-left: 0 !important;
    }

    body.ltr-mode .timeline-dot {
        left: -1px !important;
        right: auto !important;
    }

    body.rtl-mode .timeline-dot {
        right: -1px !important;
        left: auto !important;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .soft-skills-card {
        flex-direction: column;
        gap: 1rem;
    }

    .soft-divider {
        width: 100%;
        height: 1px;
    }

    .badge-top-right { right: 0; }
    .badge-bottom-left { left: 0; }
}
