*{
  margin: 0;
      padding: 0;
      overflow-x: hidden;
}
body {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      font-family: Arial, sans-serif;
      background: linear-gradient(to right,#2c0e43 10%,#581c87  ) ;
    }

    /* Navbar container */
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 60px;
      background-color: #0d1325;
    }

    /* Logo */
    .logo {
      display: flex;
      align-items: center;
      font-size: 22px;
      font-weight: bold;
      color: white;
      text-decoration: none;
    }
    .logo-icon {
      color: #a855f7;
      font-size: 26px;
      margin-right: 8px;
      letter-spacing: 2.5px;
    }

    /* Links */
    .nav-links {
      display: flex;
      gap: 35px;
    }
    .nav-links a {
      color: #d1d5db;
      text-decoration: none;
      font-size: 16px;
      font-weight: 600;
      display: inline-block;          /* مهم عشان scale يشتغل */
      transition: transform 0.3s ease, color 0.3s ease;
    }
    .nav-links a:hover {
      color: #a855f7;                 /* تغيير اللون */
      transform: scale(1.2);          /* تكبير بصري بدون تحريك باقي الروابط */
    }
    .con1{
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 2rem;
      
}
    .container {
      max-width: 700px;
    opacity: 0;
  transform: translateX(-160px); /* تبدأ أسفل قليلًا */
  animation: fadeInUp 0.8s forwards;
    }
    /* keyframes للظهور من الأسفل */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

    h1 {
      font-size: 5rem;
      line-height: 1.2;
    }

    h1 .tol{
      background: linear-gradient(90deg, #ff4ecd, #7b61ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    h1 .tol2{
      background: linear-gradient(90deg, #4eafff,#4eafff, #ff4ecd);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    p {
      font-size: 1.2rem;
      color: #ffffff;
      font-weight: 200;
      margin: 20px 0 40px;
    }

    .buttons {
      display: flex;
      gap: 20px;
    }

    .btn {
      padding: 14px 28px;
      font-size: 1rem;
      border-radius: 8px;
      font-weight: bold;
      cursor: pointer;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .btn-primary {
      background: linear-gradient(90deg, #a64df8, #ff4ecd);
      border: none;
      color: #fff;
    }

    .btn-secondary {
      background: transparent;
      border: 2px solid #a64df8;
      color: #a64df8;
    }

    /* تأثير التكبير عند hover */
    .btn-primary:hover {
      transform: scale(1.08);
      box-shadow: 0 0px 10px #ff8ade;
    }
    .btn-secondary:hover {
      transform: scale(1.08);
      background: #a64df8;
      color: #fff;
    }
    .con2{
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 0 auto;
      margin-top: 10vh;
      width: 100%;
      height: 100vh;
}
.con2 .container1 p{
  font-size: 20.5px; 
  width: 600px;
  }
    h1  #color{
      color: #fff;
    }
     .code-card {
      background: #1e1e3f;
      color: #fff;
      padding: 20px 30px;
      border-radius: 12px;
      width: 500px;
      box-shadow: 0 0 30px #000000;
      position: relative;
    opacity: 0;
  transform: translateX(160px); /* تبدأ أسفل قليلًا */
  animation: fadeInUp 0.8s forwards;
    }
    /* keyframes للظهور من الأسفل */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

    /* نافذة مثل terminal */
    .code-card::before {
      content: '';
      position: absolute;
      top: 12px;
      left: 20px;
      width: 12px;
      height: 12px;
      background: #ff5f56;
      border-radius: 50%;
      box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f;
    }
    

    pre {
      margin-top: 40px;
      white-space: pre-wrap;
    }

    /* ألوان الكود */
    .keyword { color: #00a4f6; }
    .string { color: #ffcf54; }
    .property { color: #ffffff; }
    .value { color: #dcdcaa; }
    .comment { color: #a43af6 ; font-style: italic; }
    .propert { color: #4bff5d; }






    .sidebar {
      width: 250px;
      background: #2c2c3c00;
      padding: 20px;
      box-sizing: border-box;
    }
    .sidebar h2 {
      margin-bottom: 15px;
      font-size: 18px;
      color: #a0a0ff;
    }
    .sidebar ul {
      list-style: none;
      padding: 0;
    }
    .sidebar li {
      margin-bottom: 10px;
      cursor: pointer;
      color: #ddd;
    }
    .editor-container {
      flex: 1;
      padding: 20px;
      box-sizing: border-box;
      position: relative;
    }
    .editor-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    .editor-header span {
      font-size: 14px;
      color: #aaa;
    }
    .run-btn {
      background: #6c63ff;
      border: none;
      padding: 8px 16px;
      color: white;
      cursor: pointer;
      border-radius: 4px;
    }
    pre {
      background: #10101000;
      padding: 20px;
      border-radius: 8px;
      overflow-x: auto;
      font-size: 14px;
    }

   

    /* Sidebar */
    .sidebar {
      background: #1e1e1e;
      border-bottom: 2px solid #2c2c2c;
      padding: 20px;
      text-align: center;
    }

    .sidebar h2 {
      color: #bb86fc;
      margin: 0;
      font-size: 20px;
    }

    .snippet-list {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 10px;
      flex-wrap: wrap;
    }

    .snippet-list div {
      background: rgba(187, 134, 252, 0.1);
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .snippet-list div:hover {
      background: rgba(187, 134, 252, 0.3);
    }

    /* Main section */
    .main {
      background: #1e1e3f;
      color: #fff;
      box-shadow: 0 0 30px #000000;
      position: absolute;
      left: 60%;
      width: 470px;
      border-radius: 8px;
    }
.main::before {
      content: '';
      position: absolute;
      top: 12px;
      left: 20px;
      width: 12px;
      height: 12px;
      background: #ff5f56;
      border-radius: 50%;
      box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f;
    }
    .main {
      flex: 1;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    opacity: 0;
  transform: translateX(60px); /* تبدأ أسفل قليلًا */
  animation: fadeInUp 0.8s forwards;
    }
    /* keyframes للظهور من الأسفل */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

    .editor {
      width: 90%;
      max-width: 700px;
      height: 350px;
      background: transparent;
      border-radius: 10px;
      padding: 20px;
      position: relative;
      font-size: 14px;
      line-height: 1.5;
      overflow: auto;
      white-space: pre-wrap;
    }

    .editor .cursor {
      display: inline-block;
      width: 8px;
      background: #bb86fc;
      animation: blink 1s infinite;
    }

    @keyframes blink {
      0%, 50% { opacity: 1; }
      51%, 100% { opacity: 0; }
    }

    /* Syntax highlight */
    .keyword { color: #bb86fc; }
    .function { color: #82aaff; }
    .variable { color: #03dac6; }
    .number { color: #f78c6c; }
    .string { color: #fbc02d; }
    .error-code { color: #cf6679; }

    /* Labels */
    .labels {
      margin-top: 15px;
      font-size: 14px;
      color: #a0a0a0;
    }

    .labels span {
      margin-right: 20px;
    }
    .editor {
  overflow: hidden; /* يمنع ظهور أي شريط */
}

.container1{
  position: absolute;
  margin-top: -10vw;
  margin-left: 5%;
}







.con3{
  margin: 0;
      font-family: "Poppins", sans-serif;
      background: linear-gradient(135deg, #1a0033, #3d0066, #5e0acc);
      color: #fff;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      padding: 10rem 0 0 10rem;

}
  /* 🖼️ الشبكة */
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
      width: 100%;
      max-width: 1200px;
    }

    /* 🟪 البطاقة */
    .card {
      backdrop-filter: blur(20px);
      border-radius: 15px;
      padding: 20px;
      cursor: default;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 25px rgba(0,0,0,0.5);
      background: linear-gradient(rgba(0, 42, 132, 0),rgba(0, 42, 132, 0.204));
    }

    /* ✍️ العنوان */
    .card h3 {
      margin: 0 0 10px;
      font-size: 20px;
      font-weight: bold;
    }

    /* 📄 الوصف */
    .card p {
      font-size: 14px;
      color: #ccc;
      margin-bottom: 12px;
    }

    /* 🏷️ الوسوم */
    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 15px;
    }

    .tag {
      padding: 4px 10px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      color: #fff;
    }

    .react { background: #61dafb; color: #000; }
    .python { background: #4B8BBE; }
    .node { background: #d46b01; }
    .css { background: #09c6ff; }
    .js { background: #f7df1e; color: #000; }
    .ts { background: #007acc; }

    /* ⭐ الإحصائيات */
    .stats {
      font-size: 13px;
      margin-bottom: 15px;
      color: #aaa;
    }

    /* 🔘 الزر */
    .btn1 {
      display: inline-block;
      padding: 10px 10px;
      border-radius: 10px;
      background: #6c3de8;
      color: #fff;
      text-decoration: none;
      font-size: 14px;
      font-weight: bold;
      width: 90%;
      transition: transform 0.3s ease, background  0.3s ease;
    }

    .btn1:hover {
      background: #8a5df5;
      transform: scale(1.09);
      box-shadow: 0 8px 10px #ffffff7a;
    }

@media (max-width: 1000px) {
  .con1{
    max-width: 900px;
  }
  .con2 .container1 h1{
    font-size: 2.5rem;
  }
  .con2 .container1 p{
    font-size: 1rem;
    font-weight: 200;
    width: 300px;
  }
}

    /*  768px */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .navbar .logo {
    margin-bottom: 10px;
  }

  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }

  .container {
    padding: 0px;
  }
  .container h1{
    font-size: 2rem;
  }
  .container p{
    font-size: 1rem;
  }
  .con1{
    max-width: 600px;
  }
  .con2{
    max-width: 300px;
    margin: 0;
    height: 60vh;
  }
  .container1 h1{
    font-size: 2rem;
  }
  .con2 .container1 p{
    max-width: 300px;
    font-size: 1rem;
  }
  .con3{
      padding: 0rem 0 0 0rem;
  }

  .projects {
    grid-template-columns: 1fr; 
  }

  .code-card {
    width: 100%; 
    display: none;
  }
  .main{
    display: none;
  }
}

@media (max-width: 1208px){
  .main{
    width: 250px;
    margin: auto;
    margin: 50px;
  }
}
