/* Screenshot dim overlay */
#screenshot-dim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
#screenshot-dim.active {
  opacity: 1;
}
/* Prevent text and image copying */
body,
img,
.section,
.container,
.home-content,
.about-content,
.skills-container,
.portfolio-item,
.service-card {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img {
  pointer-events: none;
}
/* Theme Toggle Icon Styles */
.theme-toggle-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .theme-toggle-icon {
  color: #f6e05e; /* Vibrant yellow for moon/sun in dark mode */
  transform: rotate(360deg);
}

.theme-toggle:active .theme-toggle-icon {
  transform: scale(1.15) rotate(-10deg);
  filter: brightness(1.2);
}
/* Reset and base styles */

body {
  --primary: #4a9eff;
  --primary-dark: #3182ce;
  --primary-rgb: 74, 158, 255;
  --text-color: #333333;
  --bg-color: #ffffff;
  --light-bg: #f5f7fa;
  --white: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.8);
  --card-bg: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 0, 0, 0.05);
  --shadow-color: rgba(31, 38, 135, 0.1);
  --section-bg: #ffffff;
  --heading-color: #1a202c;
  --subtitle-color: #4a5568;
  --font-primary: "Poppins", sans-serif;
  --glass-blur: 15px;
  --footer-bg: #f5f7fa;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* Custom Cursor - Only on Desktop */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    .custom-cursor, .cursor-follower {
        display: block;
    }
}

@media (pointer: coarse) {
    .custom-cursor, .cursor-follower {
        display: none;
    }
}

body[data-theme="dark"] {
  --primary: #63b3ed;
  --primary-dark: #4299e1;
  --primary-rgb: 99, 179, 237;
  --text-color: #e2e8f0;
  --bg-color: #0f172a;
  --light-bg: #1e293b;
  --white: #f8fafc;
  --navbar-bg: rgba(15, 23, 42, 0.8);
  --card-bg: rgba(30, 41, 59, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --section-bg: #0f172a;
  --heading-color: #f8fafc;
  --subtitle-color: #94a3b8;
  --footer-bg: #0f172a;
}

/* Custom Cursor Styles */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease-out;
}

.cursor-follower {
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition:
    transform 0.25s ease-out,
    background 0.3s,
    border 0.3s;
}

.cursor-hover {
  transform: scale(1.5);
  background: rgba(var(--primary-rgb), 0.1);
  border-width: 1px;
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 2000;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--primary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
  text-shadow: 0 4px 8px rgb(124, 33, 243);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.burger {
  display: none;
  cursor: pointer;
  z-index: 1000;
}

.burger div {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Burger Animation */
.burger.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
  opacity: 0;
}

.burger.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media screen and (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: 0.5s ease-in-out;
    z-index: 999;
  }

  .nav-links.nav-active {
    right: 0;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Theme Toggle Styles */
.theme-toggle {
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-left: 15px;
  box-shadow: 0 4px 10px var(--shadow-color);
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--hover-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px var(--shadow-color);
  border-color: var(--primary);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

/* Footer Styles */
footer {
  background: var(--footer-bg);
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  transition: all 0.4s ease;
  text-align: center;
}

footer p {
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.social-links a:hover {
  color: var(--primary);
  opacity: 1;
  transform: translateY(-3px);
}

/* Dark Theme Colors */
[data-theme="dark"] {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --heading-color: #f8fafc;
  --primary: #63b3ed;
  --primary-dark: #4299e1;
  --card-bg: rgba(30, 41, 59, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --hover-color: rgba(99, 179, 237, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --footer-bg: #0f172a;
}

/* Light Theme Colors */
[data-theme="light"] {
  --bg-color: #ffffff;
  --text-color: #333333;
  --heading-color: #1a1a1a;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --card-bg: #f8f9fa;
  --border-color: #e5e7eb;
  --hover-color: rgba(37, 99, 235, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Scroll effect for navbar */
.navbar.scrolled {
  padding: 15px 0;
  box-shadow: 0 2px 10px var(--shadow-color);
}

/* Hero Section */
.home {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.home .container {
  position: relative;
  z-index: 2;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Add a subtle gradient overlay */
.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.1) 0%,
    rgba(var(--primary-rgb), 0.05) 100%
  );
  z-index: 1;
}

@media (max-width: 768px) {
  .home {
    padding-top: 100px;
  }
}

.home-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 0 20px;
}

.home-content h1 {
  font-size: 4rem; /* زيادة كبيرة في الحجم */
  color: var(--heading-color);
  margin-bottom: 40px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

/* Visitor Counter Styles */
.visitor-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 10px 20px;
  background-color: var(--card-bg);
  border-radius: 50px;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.3s ease;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

.visitor-counter:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow-color);
}

.visitor-counter i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 10px;
}

.counter-text {
  color: var(--text-color);
  font-weight: 500;
  margin-right: 5px;
}

.counter-value {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.title {
  font-size: 6rem;
  color: var(--heading-color);
  margin-bottom: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.profession {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.subtitle {
  font-size: 7rem; /* زيادة حجم النص الفرعي */
  color: var(--text-color);
  margin: 20px 0;
  line-height: 1.4;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .home-content h1 {
    font-size: 4.5rem;
  }

  #typed-text,
  .typed-cursor {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.5rem;
  }
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.name-title {
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.profession {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 7rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  z-index: 10;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.primary-btn {
  background: var(--primary);
  color: white !important;
  border: 2px solid var(--primary);
}

.primary-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.secondary-btn {
  background: transparent;
  color: var(--text-color) !important;
  border: 2px solid var(--primary);
}

.secondary-btn:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 25px;
    font-size: 1.1rem;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .cta-buttons {
    gap: 15px;
    margin-top: 30px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn {
    width: 200px;
  }
}

/* About Section */
.about {
  padding: 60px 0;
  background: var(--section-bg);
  text-align: center;
  margin-top: -1px; /* Fix any potential gap */
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  margin-top: 40px;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: -10px;
  background: var(--primary);
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
  font-size: 1.8rem;
  font-weight: bold;
  display: block;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .experience-badge {
    right: -1px;
    padding: 5px;
    font-size: 0.9rem;
    bottom: 20px;
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-description h3 {
  color: var(--heading-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-description p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary);
  background: var(--hover-color);
  padding: 10px;
  border-radius: 10px;
}

.info-item h4 {
  color: var(--heading-color);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-item p {
  color: var(--text-color);
  font-size: 1rem;
}

@media screen and (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .experience-badge {
    right: -1px;
  }

  .about-description h3 {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 768px) {
  .about-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-description h3 {
    font-size: 1.4rem;
  }

  .about-description p {
    font-size: 1rem;
  }

  .info-item i {
    font-size: 1.3rem;
  }

  .info-item h4 {
    font-size: 1rem;
  }

  .info-item p {
    font-size: 0.95rem;
  }
}

/* Dark mode specific adjustments */
[data-theme="dark"] .about-description,
[data-theme="dark"] .about-content p {
  color: var(--text-color);
  opacity: 0.9;
}

[data-theme="dark"] .about-content h2 {
  color: var(--heading-color);
}

/* Mobile styles */
@media (max-width: 760px) {
  .about {
    padding: 80px 0;
    margin-top: -1px;
  }

  .about-content {
    padding: 0 20px;
  }

  .about-content h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    padding-top: 20px;
  }
}

.about-content h2,
.about-content p {
  color: var(--text-color);
}

.about .social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.about .social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: #9b0d0d;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #630e0e;
}

.about .social-btn i {
  font-size: 18px;
}

.about .social-btn:hover {
  background: #700303;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(119, 4, 4, 0.2);
}

.about .social-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(119, 4, 4, 0.1);
}

.about-social {
  margin-top: 30px;
}

.about-social-btn {
  width: 40px;
  height: 40px;
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}

.about-social-btn:hover {
  background: #ffffff !important;
  color: #434b55 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2) !important;
}

.about-social-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(165, 4, 4, 0.1) !important;
}

.about-social-btn i {
  font-size: 18px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .about-content h2 {
    font-size: 2rem;
  }

  .about-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .about {
    padding-top: 80px;
  }

  .about-content {
    padding: 0 20px;
  }

  .about-content h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    margin-top: 40px;
  }

  .about-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .about .social-links {
    margin-top: 30px;
  }

  .about .image-container {
    margin-bottom: 30px;
  }

  .about .image-container img {
    max-width: 200px;
    height: auto;
    border-radius: 20px;
  }
}

/* Section Titles */
.section-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: var(--font-primary);
  position: relative;
  padding-bottom: 15px;
}

.section-line {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 50px;
  border-radius: 2px;
  position: relative;
}

.section-line::before,
.section-line::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 4px;
  background: var(--primary-dark);
  border-radius: 2px;
  top: 0;
}

.section-line::before {
  left: -50px;
}

.section-line::after {
  right: -50px;
}

.section-subtitle {
  text-align: center;
  color: var(--subtitle-color);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  font-family: var(--font-primary);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: start;
}

.about-left {
  position: relative;
}

.about-image-wrapper {
  position: sticky;
  top: 100px;
}

.about-left .image-container {
  width: 100%;
  max-width: 350px;
  height: auto;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.about-left .image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .about-left .image-container {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
  }
}

.image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary), transparent);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.image-container:hover {
  transform: translateY(-10px);
}

.image-container:hover::before {
  opacity: 0.5;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--white);
}

.social-btn i {
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
}

.social-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(255, 255, 255, 0.1);
}

.about-right {
  flex: 1;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-right .name-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.about-right .profession {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

.about-right .about-description {
  color: var(--text-color) !important;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile styles */
@media (max-width: 768px) {
  .about-right {
    padding: 15px;
  }

  .about-right .name-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .about-right .profession {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .about-right .about-description {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 15px;
  }
}

/* Portfolio Section */
.portfolio {
  padding: 80px 0;
  position: relative;
  scroll-margin-top: 80px;
  background: var(--bg-color);
}

@media (max-width: 760px) {
  .portfolio {
    padding: 60px 0;
    scroll-margin-top: 60px;
  }

  #portfolio {
    scroll-margin-top: 60px;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 20px;
}

.portfolio-item {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}


.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.portfolio-actions {
  display: flex;
  gap: 15px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-actions {
  transform: translateY(0);
}

.portfolio-actions .btn {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portfolio-actions .btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Visitor Counter Section */
#visitor-counter {
  background-color: var(--bg-primary);
  padding: 2rem 0;
  text-align: center;
}

.visitor-counter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  margin: 0 auto;
}

.visitor-counter-container i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.visitor-counter-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

#visitor-count {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

/* Contact Section */
.contact {
  padding: 60px 0;
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 1rem;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-form-container,
.contact-image-container {
  height: 100%;
}

.contact-form {
  height: 100%;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.contact-image-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-color);
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.contact-image:hover {
  transform: scale(1.02);
}

/* Mobile styles */
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-image-container {
    height: 400px;
    order: -1; /* Show image first on mobile */
  }
}

@media (max-width: 760px) {
  .contact-image-container {
    height: 300px;
  }

  .contact-form {
    padding: 20px;
  }
}

.contact-form {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-color);
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}


.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--subtitle-color);
}

.submit-btn {
  background: var(--primary);
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  width: auto;
  min-width: 150px;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

/* Contact info styles */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.contact-info-item {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-info-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.contact-info-item h3 {
  color: var(--heading-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-info-item p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
}

/* Mobile styles */
@media (max-width: 760px) {
  .contact-form {
    padding: 20px;
  }

  .submit-btn {
    width: 100%;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .contact-info {
    margin-bottom: 40px;
  }

  footer {
    margin-top: 30px;
    padding: 20px 0;
  }
}

/* Form Validation Styles */
.form-control.error {
  border-color: #dc3545;
}

.form-control.success {
  border-color: #28a745;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

/* FAQ Section */
.faq-container {
  margin-top: 2rem;
}

.faq-item {
  background-color: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px var(--shadow-color);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}


.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--heading-color);
  font-weight: 500;
}

.faq-icon {
  color: var(--primary);
  transition: all 0.3s ease;
}

.faq-icon.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-color);
}

.faq-answer.active {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* Animations */

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Navigation */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: var(--transition);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper {
    position: relative;
    top: 0;
  }

  .image-container {
    width: 280px;
    height: 280px;
  }

  .section-line::before,
  .section-line::after {
    width: 30px;
    right: -45px;
  }

  .section-line::after {
    left: -45px;
  }
}

@media screen and (max-width: 992px) {
  .about {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .about-right {
    padding: 30px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .skills-wrapper {
    gap: 15px;
  }

  .name-title {
    font-size: 2rem;
  }

  .about-description {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .about {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .about-right {
    padding: 25px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .name-title {
    font-size: 1.8rem;
  }

  .profession {
    font-size: 1.1rem;
  }

  .about-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
  }

  .social-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .hero-content {
    padding: 0 20px;
  }

  .subtitle {
    padding: 0 15px;
    margin-bottom: 25px;
  }

  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0; /* Changed to 0 for full height */
    flex-direction: column;
    background: var(--bg-color);
    width: 100%;
    text-align: center;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: 0 10px 40px var(--shadow-color);
    padding: 100px 20px 20px; /* Added top padding for burger space */
    height: 100vh;
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  .nav-links.nav-active {
    right: 0;
  }

  .burger {
    display: block;
    cursor: pointer;
    z-index: 1100;
  }

  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger.toggle .line2 {
    opacity: 0;
  }

  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .burger div {
    background-color: var(--text-color);
  }
}

@media screen and (max-width: 480px) {
  .about {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .section-line::before,
  .section-line::after {
    display: none;
  }

  .image-container {
    width: 240px;
    height: 240px;
  }

  .about-right {
    padding: 20px;
  }

  .name-title {
    font-size: 1.6rem;
  }

  .profession {
    font-size: 1rem;
  }

  .info-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .info-box i {
    margin-bottom: 5px;
  }

  .skills-title {
    font-size: 1.2rem;
    text-align: center;
  }

  .skill-info {
    font-size: 0.9rem;
  }

  .progress-bar {
    height: 6px;
  }
}

/* Fix for very small screens */
@media screen and (max-width: 320px) {
  .image-container {
    width: 200px;
    height: 200px;
  }

  .container {
    padding: 0 15px;
  }

  .about-right {
    padding: 15px;
  }

  .name-title {
    font-size: 1.4rem;
  }
}

/* Landscape Mode Fix */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .nav-links {
    overflow-y: auto;
  }

  .about {
    padding: 30px 0;
  }

  .image-container {
    width: 180px;
    height: 180px;
  }
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .section-line {
    width: 60px;
    margin-bottom: 30px;
  }

  .section-line::before,
  .section-line::after {
    width: 30px;
  }

  .section-line::before {
    left: -40px;
  }

  .section-line::after {
    right: -40px;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 20px;
  }
}

@media screen and (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .section-line {
    width: 50px;
  }

  .section-line::before,
  .section-line::after {
    width: 25px;
  }

  .section-line::before {
    left: -35px;
  }

  .section-line::after {
    right: -35px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .home-content {
    padding: 100px 20px;
    text-align: center;
  }

  .home-content h1 {
    font-size: 2.5rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
}

.section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.section-line {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 30px;
  border-radius: 2px;
  position: relative;
}

.section-line::before,
.section-line::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: var(--border-color);
}

.section-line::before {
  left: -50px;
}

.section-line::after {
  right: -50px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  opacity: 0.8;
}

#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px; /* Reduced padding to account for navbar */
  margin-bottom: -40px;
}

#about {
  padding-top: 20px; /* Reduced top padding */
}

/* Mobile styles */
@media (max-width: 768px) {
  #home {
    min-height: auto;
    padding: 160px 0 0px;
  }

  #about {
    padding-top: 90px;
    margin-top: 0;
  }

  .home-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
    padding: 0 20px;
  }
}

/* Home Section */
.home-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.home-content {
  flex: 1;
}

.home-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 30px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.image-shape {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary);
  border-radius: 30px;
  transform: rotate(-8deg);
  z-index: 1;
}

/* Mobile styles */
@media (max-width: 768px) {
  .home-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
    padding: 0 20px;
  }

  .home-image {
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .profile-image {
    width: 200px;
    height: 200px;
    border-radius: 20px;
  }

  .image-shape {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    transform: rotate(-5deg);
  }

  .home-content {
    padding: 0 15px;
    margin-top: 20px;
  }

  .home-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .home-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 200px;
  }
}

.theme-toggle {
  cursor: pointer;
  padding: 8px;
  margin-right: 20px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.theme-toggle i {
  font-size: 20px;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--light-bg);
}

/* Mobile styles */
@media (max-width: 760px) {
  .theme-toggle {
    margin-right: 60px;
  }
}

.name-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.profession {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.subtitle {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.info-box {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.info-box i {
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 10px;
}

.info-box strong {
  color: var(--heading-color);
  display: block;
  margin-bottom: 5px;
}

.info-box p {
  color: var(--text-color);
  margin: 0;
}

.skill-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.skill-name {
  color: var(--heading-color);
}

.skill-percentage {
  color: var(--primary);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.about-right {
  flex: 1;
  padding: 20px;
}

.about-right .name-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-right .profession {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.about-right .about-description {
  color: var(--text-color) !important;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.9;
}

.info-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.info-box i {
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 10px;
}

.info-box strong {
  color: var(--heading-color);
  display: block;
  margin-bottom: 5px;
}

.info-box p {
  color: var(--text-color);
  margin: 0;
}

.education-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--card-bg);
  padding: 20px 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin: 20px auto;
  transition: all 0.3s ease;
  max-width: 400px;
}

.education-box i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 5px;
}

.education-box .info-content {
  text-align: center;
}

.education-box h5 {
  color: var(--heading-color);
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.education-box p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.5;
}

/* Mobile styles */
@media (max-width: 768px) {
  .education-box {
    padding: 15px 20px;
    margin: 15px auto;
    max-width: 320px;
  }

  .education-box i {
    font-size: 24px;
  }

  .education-box h5 {
    font-size: 1.1rem;
  }

  .education-box p {
    font-size: 0.95rem;
  }
}

.cv-btn {
  background: var(--card-bg);
  color: var(--text-color) !important;
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cv-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.cv-btn:hover::before {
  width: 100%;
}

.cv-btn:hover {
  color: white !important;
  transform: translateY(-2px);
}

.cv-btn i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.cv-btn:hover i {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 25px;
    font-size: 1.1rem;
  }
}

/* Services Section */
#services {
  padding-top: 100px; /* زيادة المسافة العلوية */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}


.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary), transparent);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.service-card:hover::before {
  opacity: 0.1;
}

.service-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--hover-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
  border: 3px solid var(--card-bg);
  position: relative;
  margin-top: -50px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.service-card:hover .service-icon {
  background: var(--primary);
  transform: scale(1.1);
}

.service-icon i {
  font-size: 24px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-content h3 {
  color: var(--heading-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.service-content p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }

  .service-image {
    height: 160px;
  }

  .service-content {
    padding: 20px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    margin-top: -40px;
    border-width: 2px;
  }

  .service-icon i {
    font-size: 20px;
  }

  .service-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .service-content p {
    font-size: 0.95rem;
  }
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-box {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 15px;
}

.skill-header i {
  font-size: 28px;
  color: var(--primary);
  background: var(--hover-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-header h3 {
  color: var(--heading-color);
  font-size: 1.3rem;
  margin: 0;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    width: 100%;
}

.skill-item {
    width: 100%;
    height: 80px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid var(--border-color);
    padding: 15px;
    overflow: hidden;
}

/* Linear Progress Bar at the bottom */
.skill-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: var(--per);
    background: linear-gradient(to right, transparent, var(--primary));
    box-shadow: 0 0 10px var(--primary);
    transition: width 1s ease-in-out;
}

/* Subtle background fill based on progress */
.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--per);
    background: var(--primary);
    opacity: 0.03;
    z-index: -1;
    transition: width 1s ease-in-out;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.skill-item:hover::after {
    height: 6px;
    filter: brightness(1.2);
}

.skill-item i {
    font-size: 2.8rem;
    transition: transform 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.15);
}

@media screen and (max-width: 768px) {
    .skill-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .skill-item {
        height: 70px;
    }
    
    .skill-item i {
        font-size: 2.2rem;
    }
}

/* Ensure names and old rings remain hidden as requested */
.skill-info, .skill-details, .skill-percentage, .progress-ring, .skill-bar, .skill-name {
    display: none !important;
}


@media screen and (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skill-box {
    padding: 20px;
  }

  .skill-header i {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }

  .skill-header h3 {
    font-size: 1.2rem;
  }

  .skill-name {
    font-size: 0.95rem;
  }

  .skill-per::before {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 30px auto;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 25px;
    font-size: 1rem;
    text-align: center;
  }

  .home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 25px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn:hover:not(:disabled) {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.form-status {
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: 500;
}

.form-status.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.form-status.error {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

@media (max-width: 768px) {
  .contact-form {
    max-width: 100%;
    padding: 0 15px;
  }
}

/* Project Details Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 6000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 50px var(--shadow-color);
  border: 1px solid var(--border-color);
  animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  color: var(--text-color);
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--primary);
}

.project-details {
  display: flex;
  flex-direction: column;
}

.project-details h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--heading-color);
}

.project-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.project-images img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.project-images img:hover {
  transform: scale(1.05);
}

.project-description h3 {
  margin-bottom: 15px;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}

.project-description ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tech-badge {
  background-color: var(--hover-color);
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
}

@media (max-width: 768px) {
  .project-info {
    grid-template-columns: 1fr;
  }

  .project-images {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow-y: auto;
  }

  .close-modal {
    top: 10px;
    right: 15px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-container {
  margin-top: -20px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.services-container {
  margin-top: 20px;
}

.portfolio-container {
  margin-top: 20px;
}

.contact-container {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .about-container {
    margin-top: -10px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 15px;
  }

  .services-container,
  .portfolio-container,
  .contact-container {
    margin-top: 15px;
  }
}

#typed-text {
  font-size: 2rem; /* زيادة حجم النص المتحرك */
  color: var(--primary);
  font-weight: 800;
}

.typed-cursor {
  font-size: 2rem;
}

.typed-container {
  margin: 15px 0;
  min-height: 80px;
}

/* Terminal Window Styling */
.terminal-window {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px var(--shadow-color);
    width: 100%;
    max-width: 450px;
    margin: 30px auto;
    overflow: visible; /* To allow badge to pop out */
    position: relative;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    transition: transform 0.3s ease;
}

.terminal-window:hover {
    transform: translateY(-5px);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    margin-left: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

.terminal-body {
    padding: 25px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
}

.terminal-body code {
    white-space: pre-wrap;
    display: block;
}

/* Syntax Highlighting */
.token-keyword { color: #c678dd; font-weight: bold; }
.token-variable { color: #e06c75; }
.token-property { color: #d19a66; }
.token-string { color: #98c379; }
.token-number { color: #d19a66; }
.token-method { color: #61afef; }

/* Experience Badge Position Adjust for Terminal */
.experience-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: var(--primary);
    color: white !important;
    padding: 15px 22px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
    text-align: center;
    z-index: 10;
    animation: floating 3s ease-in-out infinite;
}

.experience-badge .years {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.experience-badge .text {
    font-size: 0.75rem;
    line-height: 1.2;
    display: block;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media screen and (max-width: 768px) {
    .terminal-window {
        max-width: 100%;
        margin: 20px 0 40px 0;
    }
    .experience-badge {
        bottom: -15px;
        right: -10px;
        padding: 10px 18px;
    }
    .experience-badge .years { font-size: 1.6rem; }
}

/* Blog Section Styling */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary);
}

.blog-img {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 15px;
}

.blog-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.blog-content h3 {
    color: var(--heading-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-content h3 {
    color: var(--primary);
}

.blog-content p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.8;
}

.blog-read-more {
    margin-top: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.blog-read-more:hover {
    gap: 12px;
}

.blog-footer {
    text-align: center;
    margin-top: 50px;
}

@media screen and (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-img {
        height: 200px;
    }
}

/* Experience Timeline Styles */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--bg-color);
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-content {
    padding: 25px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--primary);
}

.timeline-content h3 {
    color: var(--heading-color);
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.timeline-content .company {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0.9;
}

.timeline-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsiveness for Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-dot {
        left: 21px !important;
        right: auto;
    }
}

/* Blog Modal & Interaction Styles */
.blog-modal-content {
    max-width: 850px;
    padding: 40px;
    border-radius: 25px;
    line-height: 1.8;
}

#blog-article-body {
    color: var(--text-color);
}

#blog-article-body h2 {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 20px;
}

#blog-article-body .article-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    opacity: 0.7;
    font-size: 0.9rem;
}

#blog-article-body img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
}

#blog-article-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.blog-modal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.blog-interactions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.interaction-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.interaction-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.like-btn.liked {
    color: #ff4757;
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.like-btn i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-btn.liked i {
    transform: scale(1.3);
}

.share-btn:hover {
    background: var(--primary);
    color: white;
}

@media screen and (max-width: 768px) {
    .blog-modal-content {
        padding: 25px;
        margin: 10px;
        width: 95%;
    }
    #blog-article-body h2 {
        font-size: 1.6rem;
    }
    #blog-article-body img {
        height: 250px;
    }
}

/* Admin Dashboard Styles */
.dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 5000;
    overflow-y: auto;
    padding: 40px 20px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.dashboard-header .logo span {
    color: var(--text-color);
    font-size: 1rem;
    opacity: 0.6;
    margin-left: 10px;
}

.dashboard-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.dashboard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-list {
    display: grid;
    gap: 15px;
}

.admin-list-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.admin-list-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.item-info h4 {
    margin-bottom: 5px;
    color: var(--heading-color);
}

.item-info span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.edit-btn { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.delete-btn { background: rgba(255, 71, 87, 0.1); color: #ff4757; }

.edit-btn:hover { background: var(--primary); color: white; }
.delete-btn:hover { background: #ff4757; color: white; }

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.editor-modal-content {
    max-width: 700px;
    width: 90%;
}

/* Upload & Preview Styles */
.upload-area {
    border: 2px dashed var(--border-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(var(--primary-rgb), 0.03);
    margin-bottom: 5px;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.upload-area p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-img {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4757;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Sync Assistant Styles */
.sync-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.sync-header {
    margin-bottom: 30px;
    text-align: center;
}

.sync-header h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.sync-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sync-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.sync-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.sync-card h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sync-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 20px;
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(var(--secondary-rgb), 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    transform: rotate(-90deg);
}

.progress-circle path {
    transition: stroke-dashoffset 10ms linear;
}
