/* ===============================
    Reset & Base Styles (Version 2025-11-14)
    =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #0a0e16 0%, #1a1f2e 50%, #252b3d 100%);
    color: #f7fafc;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero video styles */
.hero-video {
    width: 100%;
    margin: 1rem 0 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

/* Background mode for hero video */
.hero-video.bg {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: -2; /* behind overlay */
}

.hero-video.bg .video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) saturate(1.05);
}

/* دعم iframe عند استخدام رابط يوتيوب */
.hero-video.bg iframe#hero-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    filter: brightness(0.55);
}

/* Hero video toggle button */
.hero-video-toggle {
    position: absolute;
    top: 110px;
    right: 20px;
    z-index: 15;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, transform 0.25s ease;
}
.hero-video-toggle:hover { background: rgba(0,0,0,0.7); transform: translateY(-2px); }
.hero-video-toggle.paused { background: rgba(160,30,30,0.65); }
.hero-video-toggle.paused:hover { background: rgba(180,40,40,0.75); }

/* Gentle overlay for readability */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
    z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video .video-player { animation: none !important; }
}

/* ===============================
   Color Variables
   =============================== */
:root {
    --primary-bg: #0a0e16;
    --secondary-bg: #1a1f2e;
    --card-bg: #252b3d;
    --accent-blue: #2c5aa0;
    --accent-red: #c41e3a;
    --accent-dark-blue: #1a2d4a;
    --accent-steel: #4a5568;
    --accent-gold: #d4af37;
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --text-muted: #94a3b8;
    --border-color: #3a4553;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===============================
   Typography
   =============================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===============================
   Navigation
   =============================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
    border-color: var(--accent-purple);
}

.logo-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
    background: rgba(66, 153, 225, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Language Switcher */
.language-switcher {
    margin-right: 1rem;
}

.lang-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

.lang-btn i {
    font-size: 1rem;
}

/* Language Support */
html[dir="ltr"] {
    font-family: 'Roboto', sans-serif;
}

html[dir="ltr"] .nav-menu {
    direction: ltr;
}

html[dir="ltr"] .hero-content {
    text-align: left;
}

html[dir="ltr"] .logo-text {
    font-family: 'Roboto', sans-serif;
}

/* ===============================
   Hero Section
   =============================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42,62,94,0.35), rgba(18,25,38,0.6));
    z-index: -1;
}
/* Disable static background when video background is active */
.hero.hero-has-video::before { content: none; }

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-experience {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.highlight {
    color: var(--accent-orange);
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-red);
}

.btn-secondary:hover {
    background: var(--accent-red);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-blue);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* ===============================
   Key Strengths Section
   =============================== */
.key-strengths {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.strength-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.strength-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.strength-card:hover::before {
    transform: scaleX(1);
}

.strength-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.strength-card:nth-child(1):hover::before {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
}

.strength-card:nth-child(2):hover::before {
    background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
}

.strength-card:nth-child(3):hover::before {
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-red));
}

.strength-card:nth-child(4):hover::before {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
}

.strength-card:nth-child(5):hover::before {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
}

.strength-card:nth-child(6):hover::before {
    background: linear-gradient(90deg, var(--accent-green), var(--accent-purple));
}

.strength-icon {
    width: 80px;
    height: 80px;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.strength-card:nth-child(1) .strength-icon {
    background: rgba(66, 153, 225, 0.1);
    color: var(--accent-blue);
}

.strength-card:nth-child(2) .strength-icon {
    background: rgba(72, 187, 120, 0.1);
    color: var(--accent-green);
}

.strength-card:nth-child(3) .strength-icon {
    background: rgba(237, 137, 54, 0.1);
    color: var(--accent-orange);
}

.strength-card:nth-child(4) .strength-icon {
    background: rgba(159, 122, 234, 0.1);
    color: var(--accent-purple);
}

.strength-card:nth-child(5) .strength-icon {
    background: rgba(245, 101, 101, 0.1);
    color: var(--accent-red);
}

.strength-card:nth-child(6) .strength-icon {
    background: rgba(72, 187, 120, 0.1);
    color: var(--accent-green);
}

.strength-card:hover .strength-icon {
    transform: scale(1.1) rotate(5deg);
}

.strength-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.strength-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===============================
   Certificates Section
   =============================== */
.certificates {
    padding: 6rem 0;
    background: var(--primary-bg);
    overflow: hidden;
    position: relative;
}

.certificates-slider {
    margin-top: 3rem;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.certificates-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
    /* JS handles continuous marquee; animation removed to avoid conflict */
}

.certificate-card {
    min-width: 300px;
    flex-shrink: 0;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.certificate-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.certificate-card:nth-child(1),
.certificate-card:nth-child(5) {
    border-top: 4px solid var(--accent-blue);
}

.certificate-card:nth-child(2),
.certificate-card:nth-child(6) {
    border-top: 4px solid var(--accent-red);
}

.certificate-card:nth-child(3) {
    border-top: 4px solid var(--accent-gold);
}

.certificate-card:nth-child(4) {
    border-top: 4px solid var(--accent-steel);
}

.certificate-image {
    height: 180px;
    position: relative;
    background: linear-gradient(135deg, var(--secondary-bg), var(--card-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.1);
}

.certificate-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.9);
}

.certificate-overlay i {
    font-size: 1.5rem;
    color: white;
}

.certificate-info {
    padding: 1.5rem;
    text-align: center;
}

.certificate-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.certificate-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.certificate-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Animation for scrolling */
@keyframes moveLeft {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Removed slideLeft keyframes; replaced by JS pixel-based marquee */

/* Pause animation on hover */
.certificates-track:hover {
    animation-play-state: paused;
}

/* ===============================
   Core Competencies Section
   =============================== */
.competencies {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.competency-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.competency-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header.financial {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-dark-blue));
}

.card-header.compliance {
    background: linear-gradient(135deg, var(--accent-red), #8b1538);
}

.card-header.leadership {
    background: linear-gradient(135deg, var(--accent-gold), #b8941f);
}

.card-header i {
    font-size: 2rem;
}

.card-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.card-content {
    padding: 2rem;
}

.card-content ul {
    list-style: none;
}

.card-content li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-content strong {
    color: var(--text-primary);
}

/* ===============================
   Professional Experience Section
   =============================== */
.experience {
    padding: 6rem 0;
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem;
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
    margin-right: 0;
}

.timeline-date {
    background: var(--accent-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex: 1;
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-content strong {
    color: var(--text-primary);
}

/* ===============================
   Education Section
   =============================== */
.education {
    padding: 6rem 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.education-card:nth-child(1) { border-top: 4px solid var(--accent-blue); }
.education-card:nth-child(2) { border-top: 4px solid var(--accent-green); }
.education-card:nth-child(3) { border-top: 4px solid var(--accent-purple); }
.education-card:nth-child(4) { border-top: 4px solid var(--accent-orange); }
.education-card:nth-child(5) { border-top: 4px solid var(--accent-red); }

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-card:nth-child(1) .education-icon { color: var(--accent-blue); }
.education-card:nth-child(2) .education-icon { color: var(--accent-green); }
.education-card:nth-child(3) .education-icon { color: var(--accent-purple); }
.education-card:nth-child(4) .education-icon { color: var(--accent-orange); }
.education-card:nth-child(5) .education-icon { color: var(--accent-red); }

.education-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-card h4 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.education-date {
    color: var(--text-secondary);
    font-style: italic;
}

/* ===============================
   Contact Section
   =============================== */
.contact {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

/* واتس اب بلون أخضر مميز */
.contact-icon .fa-whatsapp {
    color: #25D366;
}

.contact-icon:has(.fa-whatsapp) {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-red);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

/* ===============================
   Footer
   =============================== */
.footer {
    background: var(--primary-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    color: var(--text-secondary);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.footer-social a:hover {
    color: var(--accent-blue);
    background: rgba(66, 153, 225, 0.1);
}

/* ===============================
   Responsive Design
   =============================== */

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    /* Language switcher specific styles for mobile */
    .language-switcher {
        margin: 1.5rem 0;
        display: flex;
        justify-content: center;
        padding: 0.5rem 0;
    }

    .lang-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        border-radius: 30px;
        box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
        background: var(--accent-blue);
        color: white;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        min-width: 120px;
    }

    .lang-btn:hover {
        background: var(--accent-red);
        border-color: var(--accent-red);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(226, 74, 85, 0.4);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .competencies-grid,
    .education-grid,
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certificate-card {
        min-width: 250px;
    }

    @keyframes slideLeft {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-282px * 4)); /* (250px + 32px gap) * 4 cards */
        }
    }

    .competencies-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        flex-direction: column !important;
    }

    .timeline-item .timeline-content {
        margin: 1rem 0 !important;
        text-align: center !important;
    }

    .experience-timeline::before {
        right: auto;
        left: 50%;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }

    .competencies-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .actions-grid,

    .actions-grid,
    .actions-grid,
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    /* Enhanced language switcher for very small screens */
    .language-switcher {
        margin: 1.5rem 0;
        padding: 1rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .lang-btn {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        min-width: 140px;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .competency-card,
    .action-card,
    .education-card,
    .contact-item {
        padding: 1.5rem;
    }

    .card-header {
        padding: 1.5rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .hero {
        padding-top: 80px;
    }

    /* Better touch targets for mobile */
    .nav-link,
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .profile-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-bg: #0a0e13;
        --secondary-bg: #151922;
        --card-bg: #1e2329;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .hamburger {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        page-break-after: always;
    }
    
    .section-title {
        color: black !important;
    }
}

/* ===============================
   Animations
   =============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Smooth scroll padding for fixed navbar */
section {
    scroll-margin-top: 100px;
}

/* ===============================
     Admin Page Enhancements
     =============================== */
body.admin-page {
    background: linear-gradient(135deg,#10141d 0%,#181f2b 50%,#1f2735 100%);
}
body.admin-page .navbar {background:rgba(18,25,36,0.9);}
body.admin-page .logo-text {font-size:1.3rem;}

.admin-toolbar {
    position:fixed;top:70px;left:0;right:0;z-index:900;background:rgba(20,26,34,0.9);backdrop-filter:blur(10px);
    border-bottom:1px solid var(--border-color);box-shadow:0 8px 18px -6px rgba(0,0,0,.35);
}
.admin-toolbar-inner {max-width:1200px;margin:0 auto;padding:.75rem 20px;display:flex;flex-wrap:wrap;align-items:center;gap:1.25rem;justify-content:space-between;}
.admin-toolbar-group {display:flex;flex-wrap:wrap;gap:.75rem;}
.admin-toolbar .btn {padding:.7rem 1.2rem;font-size:.85rem;border-radius:10px;}
.admin-toolbar .btn i {font-size:.9rem;}
.admin-status {min-height:20px;font-size:.75rem;color:var(--text-secondary);padding:.25rem .5rem;}
.admin-status.success {color:#90EE90;}
.admin-status.error {color:#ff6b6b;}
.admin-status.warning {color:#f8d47a;}

.admin-main {padding-bottom:4rem;}

/* Cards refinement for admin */
body.admin-page .competency-card,body.admin-page .strength-card {border:1px solid var(--border-color);background:linear-gradient(155deg,#252b3d 0%,#232a39 60%,#222835 100%);}
body.admin-page .competency-card .card-header,body.admin-page .strength-card .card-header {padding:1.25rem 1.5rem;}
body.admin-page .competency-card .card-content {padding:1.25rem 1.5rem;}

/* Form styling inside admin */
body.admin-page .form-group label, body.admin-page .form-grid label {display:block;margin-bottom:.35rem;font-size:.8rem;letter-spacing:.5px;color:var(--text-secondary);font-weight:600;text-transform:uppercase;}
body.admin-page input[type=text],body.admin-page textarea {background:#1d2531;border:1px solid #364352;color:var(--text-primary);font-size:.85rem;padding:.65rem .75rem;border-radius:8px;transition:.25s;} 
body.admin-page input[type=text]:focus,body.admin-page textarea:focus {outline:none;border-color:var(--accent-blue);box-shadow:0 0 0 3px rgba(44,122,180,.25);} 
body.admin-page textarea {resize:vertical;min-height:120px;}

/* Certificates editor grid */
#cert-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.25rem;margin-top:.75rem;}
body.admin-page .competency-card strong {color:var(--accent-gold);font-weight:700;}
body.admin-page .cert-preview-area {background:#1a2029;padding:.75rem;border:1px dashed #3d4a59;border-radius:10px;}
body.admin-page .cert-preview-area img {border:1px solid #3d4a59;box-shadow:0 4px 12px rgba(0,0,0,.4);} 

/* Scrollbar tweaks */
body.admin-page ::-webkit-scrollbar {width:10px;height:10px;}
body.admin-page ::-webkit-scrollbar-track {background:#141a22;}
body.admin-page ::-webkit-scrollbar-thumb {background:#2c3b4c;border-radius:6px;border:2px solid #141a22;}
body.admin-page ::-webkit-scrollbar-thumb:hover {background:#365069;}

/* Responsive admin adjustments */
@media (max-width:900px){
    .admin-toolbar-inner {flex-direction:column;align-items:stretch;}
    .admin-toolbar-group {justify-content:center;}
    .admin-main {padding-top:160px;}
}
@media (max-width:600px){
    .admin-toolbar .btn span {display:none;} /* icons only on very small screens */
    .admin-toolbar .btn {padding:.65rem .85rem;}
}