* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ==========================================================================
   1. Root Variables (التحكم الكامل في السيمز)
   ========================================================================== */
:root {
  /* Fonts */
  --font-en: system-ui, -apple-system, sans-serif;

  /* Themes Colors - Dark (الأساسي) */
  --bg: #070b14;
  --bg2: #0d1324;
  --nav-bg: rgba(5, 8, 16, 0.55);
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  
  --text: #ffffff;
  --text-pure: #ffffff;
  --muted: #b7bfd4;
  --nav-link: #ffffff;
  
  /* Accents */
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --accent-glow-1: rgba(139, 92, 246, 0.33); /* #8b5cf655 */
  --accent-glow-2: rgba(6, 182, 212, 0.33); /* #06b6d455 */
  
  /* Interactive Elements */
  --btn-outline-bg: rgba(255, 255, 255, 0.05);
  --btn-outline-hover: rgba(255, 255, 255, 0.12);
  --input-bg: rgba(255, 255, 255, 0.06);
  --loop-icon: rgb(133, 133, 133);

  --gradient: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Light Theme Variables */


/* ==========================================================================
   2. Global Styles & Animations
   ========================================================================== */
body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glowing Backgrounds */
body::before {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow-1), transparent 70%);
  top: -200px;
  right: -200px;
  z-index: -1;
  filter: blur(40px);
  transition: background 0.4s ease;
}

body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow-2), transparent 70%);
  bottom: -200px;
  left: -200px;
  z-index: -1;
  filter: blur(40px);
  transition: background 0.4s ease;
}

/* Float Buttons */
.btn-floot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--glass);
  color: var(--text);
  position: fixed;
  z-index: 999;
  transition: 0.5s ease-in-out;
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-up {
  bottom: 10px;
  right: 10px;
  opacity: 0;
  pointer-events: none;
}

.btn-setting {
  bottom: 10px;
  right: 10px;
}

.btn-language {
  bottom: 65px;
  right: 10px;
  opacity: 0;
  pointer-events: none;
}


/* Sections Structure */
section {
  padding: 110px 8%;
  position: relative;
}

h1, h2, h3, h4 {
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.8;
  transition: color 0.4s ease;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: auto;
  margin-bottom: 70px;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transition: background 0.4s ease, border 0.4s ease, box-shadow 0.4s ease;
}

/* ==========================================================================
   3. Navigation Bar
   ========================================================================== */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, border 0.4s ease;
}
.navactive{
  opacity: 1;
  pointer-events: auto;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: var(--nav-link);
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--purple);
}
.menu-btn{
  font-size: 25px;
display: none;
}
/* ==========================================================================
   4. Hero Section (Section 1)
   ========================================================================== */
.se-1 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.se-1-content {
  flex: 1;
}

.se-1-content h1 {
  font-size: 72px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
  background-clip: text;
}

.se-1-content h3 {
  font-size: 26px;
  color: var(--blue); /* تم ربطها بالمتغير للحفاظ على التناسق وتجنب اللون الثابت */
  margin-bottom: 25px;
  font-weight: 600;
  transition: color 0.4s ease;
}

.se-1-content p {
  max-width: 650px;
  margin-bottom: 35px;
  font-size: 17px;
}

.se-1-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Buttons System */
.btn {
  padding: 16px 32px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: 0.4s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--text-pure);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-4px);
}

.btn-outline {
  background: var(--btn-outline-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--btn-outline-hover);
}

/* Social Icons */
.socials {
  display: flex;
  gap: 20px;
}

.socials a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 20px;
  transition: 0.4s;
}

.socials a:hover {
  transform: translateY(-5px);
  background: var(--gradient);
  color: var(--text-pure);
  border-color: transparent;
}

.se-1-image {
  flex: 1;
  position: relative;
}

.se-1-card {
  padding: 30px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.se-1-card img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* Floating Decorative Elements */
.floating {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient);
  filter: blur(50px);
  opacity: 0.25;
  animation: float 6s infinite ease-in-out;
}

.floating.one {
  width: 160px;
  height: 160px;
  top: -40px;
  right: -30px;
}

.floating.two {
  width: 120px;
  height: 120px;
  bottom: -20px;
  left: -20px;
  animation-delay: 2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   5. About Me Section
   ========================================================================== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-card {
  padding: 40px;
  border-radius: 30px;
}

.about-d-2 {
  width: 100%;
  height: auto;
  display: flex;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 40px;
  gap: 30px;
}

.about-d-circles {
  width: 60px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 15px;
}

.outcircle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-pure);
}

.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: contents;
}

.about-d-2-texts {
  width: 80%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-d-2-text {
  border-radius: 15px;
  padding: 13px;
  background: var(--btn-outline-bg);
  border: 1px solid var(--border);
}

.about-d-2-text span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Experience Box Setup */
.about-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.info-box {
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  background: var(--btn-outline-bg);
  border: 1px solid var(--border);
}

.info-box h3 {
  font-size: 30px;
  margin-bottom: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   6. Skills Section
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.skill-card {
  padding: 30px;
  border-radius: 25px;
  transition: 0.4s;
}

.skill-card:hover {
  transform: translateY(-8px);
}

.skill-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.progress {
  width: 100%;
  height: 10px;
  background: var(--btn-outline-hover);
  border-radius: 50px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--gradient);
  border-radius: 50px;
}

/* ==========================================================================
   7. Featured Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 35px;
}

.project-card {
  border-radius: 30px;
  overflow: hidden;
  transition: 0.4s;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
}

.working {
  width: 100%;
  height: 220px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 0;
  z-index: 2;
}

.working p {
  font-size: 25px;
  color: var(--text-pure); /* لضمان وضوحه فوق البلور */
  font-weight: 700;
}

.loop {
  animation: loop infinite 3.5s ease;
  color: var(--loop-icon);
  font-size: 65px;
  margin: 15px;
  transition: color 0.4s ease;
}

@keyframes loop {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(90deg); }
  50%  { transform: rotate(180deg); }
  75%  { transform: rotate(270deg); }
  100% { transform: rotate(360deg); }
}

.project-image {
  height: 220px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blur {
  filter: blur(15px);
}

.project-content {
  padding: 30px;
}
.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 25px;
}

.tag {
  padding: 8px 14px;
  border-radius: 50px;
  background: var(--btn-outline-hover);
  font-size: 13px;
}

.project-buttons {
  display: flex;
  gap: 15px;

}
.project-buttons-Go{
text-align: center;
}
/* ==========================================================================
   8. Timeline Section
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--gradient);
}

.timeline-item {
  width: 50%;
  padding: 20px 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 30px;
  border-radius: 25px;
}

.timeline-dot {
  width: 22px;
  height: 22px;
  background: var(--gradient);
  border-radius: 50%;
  position: absolute;
  top: 35px;
  right: -11px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -11px;
}

/* ==========================================================================
   9. Statistics Section
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.stat-card {
  padding: 40px;
  border-radius: 30px;
  text-align: center;
}

.stat-card h2 {
  font-size: 50px;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
  background-clip: text;
}

/* ==========================================================================
   10. Contact Section
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr ;
  gap: 50px;
}

.contact-info {
  padding: 40px;
  border-radius: 30px;
}

.contact-info .item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}

.contact-info i {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--btn-outline-hover);
  color: var(--text);
  border: 1px solid var(--border);
}

.contact-form {
  padding: 40px;
  border-radius: 30px;
}

.input-group {
  margin-bottom: 22px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 18px;
  border: none;
  outline: none;
  border-radius: 18px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 15px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

textarea {
  min-height: 180px;
  resize: none;
}

/* ==========================================================================
   11. Footer Area
   ========================================================================== */
footer {
  padding: 40px 8%;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--bg);
  transition: border 0.4s ease, background 0.4s ease;
}

footer ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

footer ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

footer ul li a:hover {
  color: var(--blue);
}

/* ==========================================================================
   12. Responsive Design Mediaboxes
   ========================================================================== */
@media (max-width: 1100px) {
  .se-1 {
    flex-direction: column;
    text-align: center;
  }

  .se-1-buttons,
  .socials {
    justify-content: center;
  }

  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 70px;
    text-align: left !important;
  }

  .timeline-dot {
    left: 10px !important;
  }
}

@media (max-width: 768px) {

  .menu-btn{
display: block;
}
nav ul{
      position: absolute;
    top: 77px;
    right: 0;
    width: 100%;
justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    transition: ease-in-out 0.5s;
background: var(--nav-bg);
 opacity: 0;
 pointer-events: none;
}
  .se-1-content h1 {
    font-size: 52px;
  }
  .section-title {
    font-size: 34px;
  }
  .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 35px;
}


  .about-info {
    grid-template-columns: 1fr;
  }

.contact-container {
 grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.contact-info {
  padding: 30px;
  border-radius: 30px;
}
  footer {
    flex-direction: column;
    text-align: center;
  }
}
