 /* ===== CSS Variables - Light Mode (default) ===== */
 :root {
     --primary: #40513B;
     --highlight: #609966;
     --highlight-light: #A4BE7B;
     --shadow: #9DC08B;
     --bg-main: #EDF1D6;
     --bg-card: #ffffff;
     --text-primary: #1a1a1a;
     --text-secondary: #444;
     --nav-bg: rgba(237, 241, 214, 0.95);
     --card-shadow: 0 4px 20px rgba(64, 81, 59, 0.15);
     --border-subtle: rgba(64, 81, 59, 0.2);
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 html {
     scroll-behavior: smooth;
 }

 body {
     font-family: 'Outfit', sans-serif;
     background-color: var(--bg-main);
     color: var(--text-primary);
     line-height: 1.6;
     transition: background-color 0.3s ease, color 0.3s ease;
     overflow-x: hidden;
 }

 a {
     color: inherit;
     text-decoration: none;
 }

 ul {
     list-style: none;
 }

 /* ===== Navbar ===== */
 .navbar {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 1000;
     background: var(--nav-bg);
     backdrop-filter: blur(10px);
     border-bottom: 1px solid var(--border-subtle);
     transition: background 0.3s ease, border-color 0.3s ease;
 }

 .nav-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 1rem 1.5rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .nav-logo {
     font-weight: 700;
     font-size: 1.4rem;
     color: var(--primary);
 }

 .nav-menu {
     display: flex;
     align-items: center;
     gap: 1.5rem;
 }

 .nav-menu a {
     font-weight: 500;
     color: var(--text-primary);
     transition: color 0.2s;
 }

 .nav-menu a:hover {
     color: var(--highlight);
 }

 .nav-toggle {
     display: none;
     flex-direction: column;
     gap: 5px;
     background: none;
     border: none;
     cursor: pointer;
     padding: 5px;
 }

 .nav-toggle span {
     width: 24px;
     height: 2px;
     background: var(--text-primary);
     transition: 0.3s;
 }

 .nav-backdrop {
     display: none;
     position: fixed;
     inset: 0;
     z-index: 900;
     background: rgba(0, 0, 0, 0.35);
     backdrop-filter: blur(2px);
     opacity: 0;
     pointer-events: none;
     transition: opacity 0.3s ease;
 }

 .nav-backdrop.active {
     display: block;
     opacity: 1;
     pointer-events: auto;
 }

 @media (min-width: 769px) {
     .nav-backdrop,
     .nav-backdrop.active {
         display: none !important;
         opacity: 0 !important;
         pointer-events: none !important;
     }
 }

 .nav-toggle.active span:nth-child(1) {
     transform: rotate(45deg) translate(5px, 5px);
 }

 .nav-toggle.active span:nth-child(2) {
     opacity: 0;
 }

 .nav-toggle.active span:nth-child(3) {
     transform: rotate(-45deg) translate(5px, -5px);
 }

 /* Theme Toggle Button */
 .theme-toggle {
     background: var(--primary);
     color: var(--bg-main);
     border: none;
     width: 42px;
     height: 42px;
     border-radius: 50%;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.2rem;
     transition: background 0.3s, transform 0.2s;
 }

 .theme-toggle:hover {
     background: var(--highlight);
     transform: scale(1.05);
 }

 .theme-toggle .icon-moon {
     display: none;
 }

 body.dark-mode .theme-toggle .icon-sun {
     display: none;
 }

 body.dark-mode .theme-toggle .icon-moon {
     display: inline;
 }

 /* ===== Sections Common ===== */
 .section {
     min-height: 100vh;
     padding: 6rem 1.5rem 4rem;
     max-width: 1200px;
     margin: 0 auto;
 }

 .home-section,
 .about-section {
     max-width: 100%;
 }

 .section-title {
     font-size: 2.2rem;
     color: var(--primary);
     margin-bottom: 2.5rem;
     text-align: center;
 }

 .highlight {
     color: var(--highlight-light);
     font-weight: 600;
 }

 /* ===== Home Section ===== */
 .home-section {
     display: flex;
     align-items: center;
     padding-top: 8rem;
     position: relative;
     overflow: hidden;
 }

 .home-section::before {
     content: "";
     position: absolute;
     inset: 0;
     background:
         radial-gradient(circle at 12% 15%, rgba(164, 190, 123, 0.16), transparent 60%),
         radial-gradient(circle at 82% 78%, rgba(96, 153, 102, 0.12), transparent 60%);
     opacity: 0.6;
     z-index: -1;
 }

 /* خلفية مضيئة + جزيئات — داخل الـ Home فقط */
 .home-visual-bg {
     position: absolute;
     inset: 0;
     z-index: 0;
     pointer-events: none;
     overflow: hidden;
 }

 .animated-background {
     position: absolute;
     inset: 0;
     z-index: 0;
 }

 .bg-circle {
     position: absolute;
     border-radius: 50%;
     filter: blur(48px);
     opacity: 0.55;
     animation: bgOrbFloat 18s ease-in-out infinite;
 }

 .circle-1 {
     width: min(420px, 70vw);
     height: min(420px, 70vw);
     top: -12%;
     left: -8%;
     background: radial-gradient(circle, rgba(164, 190, 123, 0.45), transparent 65%);
 }

 .circle-2 {
     width: min(360px, 60vw);
     height: min(360px, 60vw);
     bottom: -10%;
     right: -5%;
     background: radial-gradient(circle, rgba(96, 153, 102, 0.4), transparent 65%);
     animation-delay: -4s;
 }

 .circle-3 {
     width: min(280px, 45vw);
     height: min(280px, 45vw);
     top: 40%;
     right: 5%;
     background: radial-gradient(circle, rgba(157, 192, 139, 0.35), transparent 60%);
     animation-delay: -8s;
 }

 .circle-4 {
     width: min(220px, 40vw);
     height: min(220px, 40vw);
     bottom: 25%;
     left: 10%;
     background: radial-gradient(circle, rgba(192, 255, 78, 0.2), transparent 60%);
     animation-delay: -12s;
 }

 .bg-dot {
     position: absolute;
     width: 6px;
     height: 6px;
     border-radius: 50%;
     background: var(--highlight-light);
     box-shadow: 0 0 12px rgba(164, 190, 123, 0.7);
     opacity: 0.35;
     animation: bgDotPulse 4s ease-in-out infinite;
 }

 .dot-1 {
     top: 12%;
     left: 22%;
 }

 .dot-2 {
     top: 28%;
     right: 18%;
     animation-delay: 0.6s;
 }

 .dot-3 {
     top: 55%;
     left: 8%;
     animation-delay: 1.2s;
 }

 .dot-4 {
     bottom: 18%;
     right: 25%;
     animation-delay: 0.9s;
 }

 .dot-5 {
     top: 70%;
     left: 45%;
     animation-delay: 1.5s;
 }

 .dot-6 {
     top: 8%;
     right: 40%;
     animation-delay: 0.3s;
 }

 .dot-7 {
     bottom: 35%;
     left: 30%;
     animation-delay: 1.1s;
 }

 .dot-8 {
     top: 42%;
     right: 8%;
     animation-delay: 0.8s;
 }

 .home-particles-host {
     position: absolute;
     inset: 0;
     z-index: 1;
     pointer-events: none;
     overflow: hidden;
 }

 .canvas-particles {
     display: block;
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     pointer-events: none;
 }

 @keyframes bgOrbFloat {

     0%,
     100% {
         transform: translate(0, 0) scale(1);
     }

     50% {
         transform: translate(3%, -2%) scale(1.05);
     }
 }

 @keyframes bgDotPulse {

     0%,
     100% {
         opacity: 0.25;
         transform: scale(1);
     }

     50% {
         opacity: 0.55;
         transform: scale(1.15);
     }
 }

 body.dark-mode .bg-circle {
     opacity: 0.45;
 }

 body.dark-mode .bg-dot {
     box-shadow: 0 0 14px rgba(192, 255, 78, 0.45);
 }

 .home-container {
     position: relative;
     z-index: 2;
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 3rem;
     align-items: center;
     width: 100%;
 }

 .home-greeting {
     font-size: 1.2rem;
     color: var(--text-secondary);
     margin-bottom: 0.5rem;
 }

 .home-name {
     font-size: 3rem;
     font-weight: 700;
     color: var(--primary);
     margin-bottom: 1rem;
     line-height: 1.2;
 }

 .home-title {
     font-size: 1.1rem;
     color: var(--highlight-light);
     font-weight: 500;
     margin-bottom: 0.75rem;
 }

 .home-bio {
     font-size: 1.15rem;
     color: var(--text-secondary);
     margin-bottom: 2rem;
 }

 .home-buttons {
     display: flex;
     gap: 1rem;
     flex-wrap: wrap;
 }

 .btn {
     display: inline-block;
     padding: 0.85rem 1.6rem;
     border-radius: 8px;
     font-weight: 600;
     font-size: 1rem;
     transition: transform 0.2s, box-shadow 0.2s;
     border: none;
     cursor: pointer;
     font-family: inherit;
 }

 .btn-primary {
     background: var(--primary);
     color: var(--bg-main);
     box-shadow: 0 4px 14px var(--shadow);
 }

 .btn-primary:hover {
     background: var(--highlight);
     transform: translateY(-2px);
     box-shadow: 0 6px 20px var(--shadow);
 }

 .btn-secondary {
     background: transparent;
     color: var(--primary);
     border: 2px solid var(--primary);
 }

 .btn-secondary:hover {
     background: var(--primary);
     color: var(--bg-main);
     transform: translateY(-2px);
 }

 .scroll-down {
     display: inline-flex;
     flex-direction: column;
     align-items: center;
     gap: 0.2rem;
     margin-top: 2.2rem;
     font-size: 0.9rem;
     color: var(--text-secondary);
 }

 .scroll-icon {
     font-size: 1.3rem;
     animation: scroll-bounce 1.3s infinite;
 }

 @keyframes scroll-bounce {

     0%,
     100% {
         transform: translateY(0);
     }

     50% {
         transform: translateY(4px);
     }
 }

 .home-image-wrapper {
     display: flex;
     justify-content: center;
     align-items: center;
 }

 .home-image-placeholder,
 .about-image-placeholder {
     width: 280px;
     height: 280px;
     border-radius: 50%;
     overflow: hidden;
     border: 4px solid var(--shadow);
     box-shadow: var(--card-shadow);
     background: var(--bg-card);
 }

 .home-image-placeholder img,
 .about-image-placeholder img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .photo-placeholder {
     width: 100%;
     height: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     background: var(--shadow);
     color: var(--primary);
     font-weight: 600;
 }

 /* ===== About Section ===== */
 .about-section {
     text-align: center;
 }

 .about-container {
     max-width: 1100px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: 1.1fr 1.4fr;
     gap: 2.5rem;
     align-items: center;
 }

 .about-image-wrapper {
     display: flex;
     justify-content: center;
 }

 .about-image-placeholder {
     border-radius: 18px;
     width: 100%;
     max-width: 340px;
     height: auto;
     overflow: hidden;
     border: none;
     box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
 }

 .about-image-placeholder img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .about-right {
     text-align: left;
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
 }

 .about-main-text {
     font-size: 1.02rem;
     color: var(--text-secondary);
     line-height: 1.8;
 }

 .about-cards {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 1.2rem;
 }

 .about-card {
     background: var(--primary);
     border-radius: 16px;
     padding: 1.4rem 1.6rem;
     box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
     border: 1px solid rgba(164, 190, 123, 0.35);
     color: var(--bg-main);
     transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
 }

 .about-card h3 {
     color: var(--bg-main);
     font-size: 1.02rem;
     margin-bottom: 0.45rem;
 }

 .about-card p {
     font-size: 0.9rem;
     color: rgba(237, 241, 214, 0.9);
 }

 .about-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
 }

 /* ===== Skills Section ===== */
 .skills-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 1.5rem;
 }

 .skill-card {
     background: rgba(23, 33, 24, 0.96);
     padding: 1.8rem;
     border-radius: 14px;
     box-shadow: 0 18px 35px rgba(0, 0, 0, 0.48);
     border: 1px solid rgba(164, 190, 123, 0.28);
     transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
     color: var(--bg-main);
 }

 .skill-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 22px 40px rgba(0, 0, 0, 0.6);
     background: rgba(23, 33, 24, 0.98);
 }

 .skill-icon {
     font-size: 1.4rem;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     background: rgba(164, 190, 123, 0.18);
     color: var(--highlight-light);
     margin-bottom: 0.75rem;
 }

 .skill-card h3 {
     color: var(--bg-main);
     font-size: 1.05rem;
     margin-bottom: 0.8rem;
 }

 .skill-card ul li {
     padding: 0.55rem 0;
     color: rgba(237, 241, 214, 0.9);
     font-size: 0.9rem;
     padding-left: 0;
     position: relative;
     padding-bottom: 0.7rem;
     margin-bottom: 0.2rem;
 }

 .skill-card ul li:last-child {
     margin-bottom: 0;
     padding-bottom: 0;
 }

 .skill-card ul li::after {
     content: "";
     position: absolute;
     left: 0;
     bottom: 0;
     width: 65%;
     height: 3px;
     border-radius: 999px;
     background: linear-gradient(90deg, rgba(164, 190, 123, 0.85), rgba(96, 153, 102, 0.7));
 }

 /* ===== Experience Section ===== */
 .experience-timeline {
     display: flex;
     flex-direction: column;
     gap: 2rem;
 }

 .experience-card {
     background: var(--bg-card);
     padding: 2rem;
     border-radius: 12px;
     box-shadow: var(--card-shadow);
     border-left: 4px solid var(--highlight);
     transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
 }

 .exp-header {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     margin-bottom: 0.25rem;
 }

 .exp-year {
     font-size: 0.85rem;
     font-weight: 600;
     color: var(--highlight-light);
     padding: 0.15rem 0.6rem;
     border-radius: 999px;
     background: rgba(164, 190, 123, 0.14);
 }

 .exp-role {
     color: var(--primary);
     font-size: 1.3rem;
     margin-bottom: 0.3rem;
 }

 .exp-company {
     color: var(--highlight);
     font-weight: 500;
     margin-bottom: 1rem;
 }

 .exp-list li {
     padding: 0.4rem 0;
     padding-left: 1.2rem;
     position: relative;
     color: var(--text-secondary);
 }

 .exp-list li::before {
     content: "•";
     color: var(--highlight);
     position: absolute;
     left: 0;
 }

 .exp-note {
     margin-top: 0.75rem;
     font-size: 0.9rem;
     color: var(--text-secondary);
 }

 .experience-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 18px 35px rgba(64, 81, 59, 0.35);
 }

 /* ===== Projects Section ===== */
 .projects-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 1.5rem;
 }

 .project-card {
     background: var(--bg-card);
     border-radius: 16px;
     overflow: hidden;
     box-shadow: var(--card-shadow);
     border: 1px solid var(--border-subtle);
     transition: transform 0.25s ease, box-shadow 0.25s ease;
     display: flex;
     flex-direction: column;
     height: 100%;
 }

 .project-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 18px 35px rgba(64, 81, 59, 0.25);
 }

 .project-image {
     width: 100%;
     height: 200px;
     overflow: hidden;
     background: var(--shadow);
 }

 .project-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
 }

 .project-content {
     padding: 1.35rem 1.25rem 1.5rem;
     display: flex;
     flex-direction: column;
     gap: 0.65rem;
     flex: 1;
 }

 .project-title {
     color: var(--primary);
     font-size: 1.2rem;
     font-weight: 600;
     margin: 0;
     line-height: 1.3;
 }

 .project-description {
     color: var(--text-secondary);
     font-size: 0.95rem;
     line-height: 1.55;
     margin: 0;
     flex: 1;
 }

 .project-tags {
     display: flex;
     flex-wrap: wrap;
     gap: 0.4rem;
 }

 .project-tags span {
     font-size: 0.78rem;
     padding: 0.28rem 0.65rem;
     border-radius: 999px;
     background: rgba(164, 190, 123, 0.2);
     color: var(--primary);
 }

 .project-actions {
     margin-top: 0.35rem;
 }

 .btn-project {
     display: inline-block;
     color: var(--primary);
     font-size: 0.92rem;
     font-weight: 600;
     padding: 0.35rem 0;
     border-bottom: 2px solid var(--highlight-light);
     transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
 }

 .btn-project:hover {
     color: var(--highlight);
     border-bottom-color: var(--highlight);
     padding-left: 4px;
 }

 /* ===== Certificates Section ===== */
 .certificates-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
     gap: 1.5rem;
 }

 .certificate-item {
     background: var(--bg-card);
     border-radius: 12px;
     box-shadow: var(--card-shadow);
     border: 1px solid var(--border-subtle);
     padding: 0.75rem;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 0;
     transition: transform 0.25s ease, box-shadow 0.25s ease;
     position: relative;
     cursor: pointer;
 }

 .certificate-image-wrap {
     position: relative;
     width: 100%;
     border-radius: 8px;
     overflow: hidden;
     aspect-ratio: 4 / 3;
 }

 .certificate-item img {
     width: 100%;
     height: 100%;
     border-radius: 8px;
     object-fit: cover;
     display: block;
 }

 .certificate-item:hover {
     transform: translateY(-4px);
     box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
 }

 /* ===== Certificate Modal (lightbox) ===== */
 .certificate-modal {
     position: fixed;
     inset: 0;
     z-index: 9999;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 1.5rem;
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.25s ease, visibility 0.25s ease;
 }

 .certificate-modal.open {
     opacity: 1;
     visibility: visible;
 }

 .certificate-modal-backdrop {
     position: absolute;
     inset: 0;
     background: rgba(0, 0, 0, 0.75);
     backdrop-filter: blur(8px);
 }

 .certificate-modal-box {
     position: relative;
     max-width: 90vw;
     max-height: 90vh;
     background: var(--bg-card);
     border-radius: 12px;
     box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
     overflow: hidden;
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .certificate-modal-close {
     position: absolute;
     top: 0.75rem;
     right: 0.75rem;
     width: 40px;
     height: 40px;
     border: none;
     background: rgba(0, 0, 0, 0.4);
     color: #fff;
     font-size: 1.5rem;
     line-height: 1;
     border-radius: 50%;
     cursor: pointer;
     z-index: 1;
     transition: background 0.2s;
 }

 .certificate-modal-close:hover {
     background: rgba(0, 0, 0, 0.6);
 }

 .certificate-modal-img {
     max-width: 100%;
     max-height: 85vh;
     width: auto;
     height: auto;
     object-fit: contain;
     display: block;
 }

 /* ===== Contact Section ===== */
 .contact-container {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 1.5rem;
     max-width: 900px;
     margin: 0 auto;
 }

 .contact-card {
     background: var(--bg-card);
     padding: 2rem;
     border-radius: 12px;
     box-shadow: var(--card-shadow);
     border: 1px solid var(--border-subtle);
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 0.5rem;
     transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
 }

 .contact-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 18px 35px rgba(64, 81, 59, 0.35);
     background: rgba(237, 241, 214, 0.96);
 }

 .contact-icon {
     font-size: 2rem;
 }

 .contact-label {
     font-weight: 600;
     color: var(--primary);
 }

 .contact-value {
     font-size: 0.95rem;
     color: var(--text-secondary);
     word-break: break-all;
     text-align: center;
 }

 .contact-layout {
     display: grid;
     grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
     gap: 2rem;
 }

 .contact-info-column {
     display: flex;
     flex-direction: column;
     gap: 1rem;
 }

 .contact-form-column {
     background: var(--bg-card);
     border-radius: 12px;
     box-shadow: var(--card-shadow);
     border: 1px solid var(--border-subtle);
     padding: 1.8rem;
 }

 .contact-form {
     display: flex;
     flex-direction: column;
     gap: 1rem;
 }

 .form-row {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 1rem;
 }

 .form-field {
     display: flex;
     flex-direction: column;
     gap: 0.35rem;
 }

 .form-field label {
     font-size: 0.85rem;
     font-weight: 500;
     color: var(--text-secondary);
 }

 .form-field input,
 .form-field textarea {
     padding: 0.6rem 0.8rem;
     border-radius: 8px;
     border: 1px solid var(--border-subtle);
     font-family: inherit;
     font-size: 0.95rem;
     background: var(--bg-main);
     color: var(--text-primary);
 }

 .form-field input:focus,
 .form-field textarea:focus {
     outline: none;
     border-color: var(--highlight-light);
     box-shadow: 0 0 0 1px rgba(164, 190, 123, 0.55);
 }

 .form-submit {
     margin-top: 0.5rem;
 }

 /* ===== Footer ===== */
 .footer {
     padding: 2.5rem 1.5rem 1.5rem;
     color: var(--text-secondary);
     font-size: 0.9rem;
     border-top: 1px solid var(--border-subtle);
 }

 .footer-container {
     max-width: 1200px;
     margin: 0 auto 1.5rem;
     display: grid;
     grid-template-columns: 2fr 1fr 1fr;
     gap: 2rem;
 }

 .footer-col h3 {
     color: var(--primary);
     margin-bottom: 0.5rem;
 }

 .footer-col h4 {
     color: var(--primary);
     margin-bottom: 0.75rem;
 }

 .footer-col ul li {
     margin-bottom: 0.35rem;
 }

 .footer-col ul li a:hover {
     color: var(--highlight-light);
 }

 .footer-text {
     max-width: 420px;
 }

 .footer-bottom {
     text-align: center;
 }

 /* ===== Responsive - Tablet ===== */
 @media (max-width: 992px) {
     .home-container {
         grid-template-columns: 1fr;
         text-align: center;
     }

     .home-image-wrapper {
         order: -1;
     }

     .home-buttons {
         justify-content: center;
     }

     .home-name {
         font-size: 2.5rem;
     }

     .about-container {
         grid-template-columns: 1fr;
         text-align: center;
     }

     .about-image-placeholder {
         justify-self: center;
     }
 }

 /* ===== Responsive - Mobile ===== */
 @media (max-width: 768px) {
     .nav-toggle {
         display: flex;
         z-index: 1102;
         position: relative;
     }

     .nav-menu {
         position: fixed;
         top: 0;
         left: 0;
         width: min(300px, 88vw);
         max-width: 100%;
         height: 100vh;
         height: 100dvh;
         margin: 0;
         padding: 5.25rem 1.5rem 2rem;
         background: var(--nav-bg);
         flex-direction: column;
         align-items: stretch;
         gap: 0.25rem;
         transition: transform 0.3s ease;
         border-top: none;
         border-right: 1px solid var(--border-subtle);
         box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
         z-index: 1101;
         transform: translateX(-100%);
         overflow-y: auto;
         -webkit-overflow-scrolling: touch;
     }

     .nav-menu.active {
         transform: translateX(0);
     }

     .nav-menu li {
         width: 100%;
         list-style: none;
     }

     .nav-menu a {
         display: block;
         padding: 0.85rem 1rem;
         font-size: 1.05rem;
         border-radius: 10px;
         width: 100%;
     }

     .nav-menu a:hover,
     .nav-menu a:focus-visible {
         background: rgba(164, 190, 123, 0.2);
         color: var(--highlight);
     }

     .nav-menu .theme-toggle {
         margin: 1rem auto 0;
         width: 48px;
         height: 48px;
     }

     body.menu-open {
         overflow: hidden;
     }

     .section {
         padding: 5rem 1rem 3rem;
     }

     .section-title {
         font-size: 1.8rem;
     }

     .home-name {
         font-size: 2rem;
     }

     .home-buttons {
         flex-direction: column;
     }

     .btn {
         width: 100%;
         text-align: center;
     }

     .home-image-placeholder,
     .about-image-placeholder {
         width: 220px;
         height: 220px;
     }

     .skills-grid {
         grid-template-columns: 1fr;
     }

     .projects-grid {
         grid-template-columns: 1fr;
     }

     .certificates-grid {
         grid-template-columns: 1fr;
     }

     .contact-container {
         grid-template-columns: 1fr;
     }

     .contact-layout {
         grid-template-columns: 1fr;
         gap: 1.5rem;
     }

     .form-row {
         grid-template-columns: 1fr;
     }

     .footer-container {
         grid-template-columns: 1fr;
         text-align: center;
     }

     .footer-text {
         max-width: none;
         margin-left: auto;
         margin-right: auto;
     }

     .project-image {
         height: 190px;
     }
 }

 @media (max-width: 480px) {
     .home-name {
         font-size: 1.75rem;
     }

     .home-image-placeholder,
     .about-image-placeholder {
         width: 180px;
         height: 180px;
     }
 }

 /* تحديث CSS Variables للدارك مود */
 body.dark-mode {
     --bg-main: #1a2a1a;
     /* أخضر داكن للخلفية */
     --bg-card: #2a3a2a;
     /* أخضر أفتح قليلاً للبطاقات */
     --text-primary: #EDF1D6;
     /* نص فاتح */
     --text-secondary: #b8c4a8;
     /* نص ثانوي فاتح */
     --nav-bg: rgba(26, 42, 26, 0.95);
     /* شفاف مع الأخضر الداكن */
     --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
     --border-subtle: rgba(157, 192, 139, 0.3);
     --primary: #9DC08B;
     /* لون أفتح للعناصر الرئيسية في الدارك مود */
     --highlight: #A4BE7B;
     /* لون أفتح للتمييز */
     --highlight-light: #c9e0a8;
     /* لون أفتح جداً */
     --shadow: #609966;
     /* لون أغمق للظلال */
 }

 /* تعديل ألوان البطاقات في الدارك مود */
 body.dark-mode .skill-card {
     background: rgba(20, 35, 20, 0.98);
     border: 1px solid rgba(164, 190, 123, 0.3);
     color: #EDF1D6;
 }

 body.dark-mode .skill-card h3 {
     color: #EDF1D6;
 }

 body.dark-mode .skill-card ul li {
     color: #d0e0c0;
 }

 body.dark-mode .about-card {
     background: #2a3a2a;
     border: 1px solid rgba(164, 190, 123, 0.3);
 }

 body.dark-mode .about-card h3,
 body.dark-mode .about-card p {
     color: #EDF1D6;
 }

 body.dark-mode .experience-card {
     background: #2a3a2a;
     border-left: 4px solid #9DC08B;
 }

 body.dark-mode .exp-role {
     color: #EDF1D6;
 }

 body.dark-mode .exp-company {
     color: #A4BE7B;
 }

 body.dark-mode .exp-list li {
     color: #d0e0c0;
 }

 body.dark-mode .project-card {
     background: #2a3a2a;
     border: 1px solid rgba(164, 190, 123, 0.3);
 }

 body.dark-mode .project-title {
     color: #EDF1D6;
 }

 body.dark-mode .project-description {
     color: #d0e0c0;
 }

 body.dark-mode .project-tags span {
     background: rgba(164, 190, 123, 0.3);
     color: #EDF1D6;
 }

 body.dark-mode .certificate-item {
     background: #2a3a2a;
     border: 1px solid rgba(164, 190, 123, 0.3);
 }

 body.dark-mode .contact-card {
     background: #2a3a2a;
     border: 1px solid rgba(164, 190, 123, 0.3);
 }

 body.dark-mode .contact-card:hover {
     background: #354a35;
 }

 body.dark-mode .contact-label {
     color: #EDF1D6;
 }

 body.dark-mode .contact-value {
     color: #d0e0c0;
 }

 body.dark-mode .contact-form-column {
     background: #2a3a2a;
     border: 1px solid rgba(164, 190, 123, 0.3);
 }

 body.dark-mode .form-field label {
     color: #EDF1D6;
 }

 body.dark-mode .form-field input,
 body.dark-mode .form-field textarea {
     background: #1a2a1a;
     border: 1px solid rgba(164, 190, 123, 0.3);
     color: #EDF1D6;
 }

 body.dark-mode .form-field input::placeholder,
 body.dark-mode .form-field textarea::placeholder {
     color: #a0b890;
 }

 body.dark-mode .footer-col h3,
 body.dark-mode .footer-col h4 {
     color: #EDF1D6;
 }

 body.dark-mode .footer-col ul li a {
     color: #d0e0c0;
 }

 body.dark-mode .footer-col ul li a:hover {
     color: #A4BE7B;
 }

 /* تعديل لون الروابط في القائمة */
 body.dark-mode .nav-menu a {
     color: #EDF1D6;
 }

 body.dark-mode .nav-menu a:hover {
     color: #A4BE7B;
 }

 body.dark-mode .nav-logo {
     color: #EDF1D6;
 }

 /* تعديل النص في قسم About */
 body.dark-mode .about-main-text {
     color: #d0e0c0;
 }

 /* تعديل النص في Home */
 body.dark-mode .home-greeting,
 body.dark-mode .home-bio {
     color: #d0e0c0;
 }

 body.dark-mode .home-name {
     color: #EDF1D6;
 }

 body.dark-mode .home-title {
     color: #A4BE7B;
 }

 /* تعديل الأزرار في الدارك مود */
 body.dark-mode .btn-primary {
     background: #9DC08B;
     color: #1a2a1a;
 }

 body.dark-mode .btn-primary:hover {
     background: #A4BE7B;
 }

 body.dark-mode .btn-secondary {
     border: 2px solid #9DC08B;
     color: #9DC08B;
 }

 body.dark-mode .btn-secondary:hover {
     background: #9DC08B;
     color: #1a2a1a;
 }

 body.dark-mode .btn-project {
     color: #c9e0a8;
     border-bottom-color: #9DC08B;
 }

 /* تعديل النص في Footer */
 body.dark-mode .footer-bottom {
     color: #a0b890;
 }

 @media (prefers-reduced-motion: reduce) {
     html {
         scroll-behavior: auto;
     }

     .bg-circle,
     .bg-dot {
         animation: none;
     }
 }
