/* ========= Global Reset ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ========= Background ========= */
body {
  background: radial-gradient(circle at top, #102040, #0A0F1F 60%);
  color: #EAF8FF;
  scroll-behavior: smooth;
  overflow-x: hidden;
}


/* ========= Animated Neon Grid ========= */
body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(#00F0FF33 1px, transparent 1px),
                    linear-gradient(90deg, #00F0FF33 1px, transparent 1px);
  background-size: 60px 60px;
  top: 0;
  left: 0;
  opacity: 0.12;
  animation: gridMove 18s linear infinite;
  z-index: -1;
}

@keyframes gridMove {
  from { transform: translateY(0px); }
  to   { transform: translateY(60px); }
}

/* ========= Navbar ========= */
.nav {
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.03);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #00B2FF33;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: #00F0FF;
  text-shadow: 0 0 10px #00F0FF;
}

.nav a {
  margin-left: 20px;
  color: #EAF8FF;
  opacity: 0.75;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  opacity: 1;
  color: #00F0FF;
  text-shadow: 0 0 12px #00F0FF;
}

/* ========= Hero Section ========= */
.hero {
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glass {
  background: rgba(0, 178, 255, 0.08);
  border: 1px solid #00B2FF66;
  padding: 40px;
  width: 460px;
  border-radius: 20px;
  backdrop-filter: blur(14px);
  text-align: center;
  animation: fadeUp 1.5s ease;
  box-shadow: 0 0 25px #00B2FF22;
}

.profile {
  width: 160px;
  border-radius: 50%;
  border: 4px solid #00F0FF;
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite;
}

/* Floating image */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #00F0FF;
  text-shadow: 0 0 10px #00F0FF;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00B2FF, #00F0FF);
  color: #0A0F1F;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 0 15px #00F0FF88;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 28px #00F0FF;
}

/* ========= Section ========= */
.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  animation: fadeIn 1.3s ease;
  scroll-margin-top: 100px;

}

#about {
  margin-bottom: 220px;   /* 🔥 مسافة واضحة تحت About */
}


#projects.section {
  padding-top: 40px;   /* بدل 60px – يقلل المسافة */
}

.title {
  font-size: 32px;
  margin-bottom: 25px;
  color: #00F0FF;
  text-shadow: 0 0 12px #00F0FF;
  text-align: center;        /* 🔥 يجعل العنوان في نص الصفحة */
  width: 100%;               /* يحافظ على التوسيط */
  display: block;            /* يحافظ على الشكل */
}


.text {
  line-height: 1.8;
  opacity: 0.85;
}

/* ========= Cards ========= */
.card {
  padding: 25px;
  border-radius: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid #00B2FF33;
  margin-bottom: 25px;
  transition: 0.25s;
  box-shadow: 0 0 14px rgba(0, 178, 255, 0.12);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(0, 178, 255, 0.4);
}

.link {
  display: inline-block;
  margin-top: 10px;
  color: #00F0FF;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

.link:hover {
  text-shadow: 0 0 14px #00F0FF;
}

/* ========= Animations ========= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========= Project Gallery (Image + Title + Link) ========= */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

/* Each Project Item */
.project-item {
  text-align: center;
  background: rgba(0, 242, 255, 0.07);
  border: 1px solid #00B2FF55;
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 18px #00B2FF33;
  transition: 0.3s ease;
  transform: translateY(0);
}

.project-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px #00F0FF66;
  border-color: #00F0FF;
}

/* Image */
.project-img {
  width: 100%;
  height: 330px;       /* 🔥 كان 180 — زوّدته لـ 260 */
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
  box-shadow: 0 0 16px #00F0FF44;
  transition: 0.3s;
}


.project-item:hover .project-img {
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(0, 242, 255, 0.7);
}

/* Project Name */
.project-name {
  font-size: 20px;
  color: #00E8FF;
  margin-bottom: 8px;
  text-shadow: 0 0 12px #00E8FF;
  font-weight: 600;
}

/* Project Button / Link */
.project-link {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(135deg, #00B2FF, #00F0FF);
  color: #0A0F1F;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.4);
}

.project-link:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #00F0FF;
}

/* ===== CONTACT SECTION FIXED ===== */

/* ===== CONTACT SECTION ===== */

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 50px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;   /* مسافة أكبر بين الكروت */
}


@media (max-width: 650px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Contact Card */
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 22px 26px;     /* الكارت بقى أكبر */
  min-height: 110px;      /* رفع ارتفاع الصندوق */
  border-radius: 14px;

  background: rgba(0, 242, 255, 0.08);
  border: 1px solid #00B2FF55;
  box-shadow: 0 0 20px #00B2FF22;

  transition: 0.25s ease;
}


.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 22px #00F0FF66;
  border-color: #00F0FF;
}

/* Icon */
.contact-icon {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 12px #00F0FF55;
}


/* Text */
.contact-item p {
  margin: 0;
  font-size: 19px;
  color: #EAF8FF;
  line-height: 1.5;
}


.contact-item strong {
  color: #00F0FF;
}

.contact-item a {
  color: #00E8FF;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}

.contact-item a:hover {
  text-shadow: 0 0 10px #00F0FF;
}

/* ICONS */
.contact-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 10px #00F0FF44;
}

/* TEXT */
.contact-item p {
  margin: 0;
  font-size: 18px;
  color: #EAF8FF;
}

.contact-item strong {
  color: #00F0FF;
}

/* LINKS */
.contact-item a {
  color: #00E8FF;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}

.contact-item a:hover {
  text-shadow: 0 0 10px #00F0FF;
}

/* ========= Achievements Section ========= */

.achievements-section {
  text-align: center;
}

.achievements-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

.achievement-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid #00B2FF33;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 0 18px rgba(0, 178, 255, 0.2);
  transition: 0.3s ease;
  text-align: center;
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.4);
}

/* Achievement Image */
.ach-img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 12px;
}

/* Titles */
.ach-title {
  font-size: 22px;
  color: #00F0FF;
  text-shadow: 0 0 10px #00F0FF;
  margin-bottom: 12px;
}

/* Text */
.ach-text {
  opacity: 0.85;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 15px;
}

.highlight {
  color: #00F0FF;
  font-weight: 700;
  text-shadow: 0 0 10px #00F0FF;
}

/* Button */
.proj-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #00B2FF, #00F0FF);
  color: #0A0F1F;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s ease;
  box-shadow: 0 0 15px #00F0FF88;
}

.proj-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 28px #00F0FF;
}
/* ========= Playlists Section ========= */

.playlists-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

/* Playlist Card */
.playlist-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid #00B2FF33;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 0 18px rgba(0, 178, 255, 0.18);
}

.playlist-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.35);
}

/* Playlist Image */
.playlist-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1px;
}

/* Title */
.playlist-title {
  font-size: 22px;
  color: #00F0FF;
  text-shadow: 0 0 10px #00F0FF;
  margin-bottom: 15px;
}

#content {
  margin-top: 80px;   /* 🔥 المسافة الجديدة — ممكن تزود أو تقلل */
}



#contact {
  margin-top: 15px;       /* نزل الكونتاكت لتحت بوضوح */
  padding-top: 120px;       /* مساحة داخلية */
  padding-bottom: 150px;    /* مساحة من تحت */
}




@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    padding: 15px 20px;
    text-align: center;
  }

  .nav h1.logo {
    margin-bottom: 10px;
  }

  .nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;   /* مسافة واضحة بين الكلمات */
  }

  .nav a {
    margin: 0 !important;  
    font-size: 15px;
  }
}
