/* ====== Base & Reset ====== */
:root {
  --bg1: #000000; /* dark background */
  --bg2: #5682B1; /* secondary background */
  --accent: #739EC9; /* main accent for headings/buttons */
  --accent2: #FFE8DB; /* secondary accent / gradients */
  --muted: #FFE8DB; /* text muted */
  --glass: rgba(115,158,201,0.04);
  --card: rgba(86,130,177,0.2);
  --glass-2: rgba(115,158,201,0.08);
  --max-width: 1100px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* ====== Background ====== */
body {
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  background-size: 600% 600%;
  animation: gradientFlow 18s ease-in-out infinite;
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  padding-bottom: 60px;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 100%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

a { color: inherit; text-decoration: none; }
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

/* ====== Header ====== */
header {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 1000;
  padding: 18px 0;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(86,130,177,0.65));
  border-bottom: 1px solid rgba(255,232,219,0.1);
}

.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--bg1);
}
.brand h1 { font-size: 16px; letter-spacing: 0.2px; color: var(--accent); }

nav ul { display: flex; gap: 18px; align-items: center; }
nav a { font-size: 14px; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
nav a:hover { background: var(--glass); color: var(--bg1); }

.cta {
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: var(--bg1);
  font-weight: 600;
}

/* ====== Hero ====== */
.hero { min-height: 80vh; display: flex; align-items: center; padding-top: 80px}
.hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: center; }
.intro h2 {
  font-size: 40px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro p { color: var(--muted); max-width: 70%; margin-bottom: 18px; }

.btn-row { display: flex; gap: 12px; }
.btn {
  padding: 12px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(115,158,201,0.2);
  cursor: pointer;
  transition: 0.3s ease;
  color: var(--muted);
}
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: none;
  color: var(--bg1);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,232,219,0.3); }

/* ====== Cards / Sections ====== */
section { padding: 72px 0; position: relative; }
section h3 {
  font-size: 20px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.edu-card {
  display: flex;
  gap: 20px; 
  align-items: center;
}

.edu-card img {
  width: 100px; 
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.edu-info {
  flex: 1; /* النص ياخد باقي المساحة */
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,232,219,0.2);
  transition: 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(255,232,219,0.3);
}.card h4 { margin-bottom: 8px; color: var(--accent2); }

.muted { color: var(--muted); font-size: 14px; }

/* ====== Glow Ring Effect ====== */
.glow-section::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(255,232,219,0.15), transparent 70%);
  filter: blur(50px);
  z-index: 0;
  opacity: 0.6;
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

/* ====== Skills Badges ====== */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.badges img.skill-img {
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
}

.badges img.skill-img:hover {
  transform: scale(1.2) rotate(-5deg);
  filter: brightness(1.2);
}
/* ====== Project / Certificates / Contact ====== */
.project-media {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,232,219,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
/* .project-card:hover .project-media img {
  transform: scale(1.05);
  opacity: 0.9;
} */


.cert { display: flex; align-items: center; gap: 14px; }
.cert img { width: 100px; height: 100px; border-radius: 6px; background: var(--bg2); }

.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
label { display: block; margin-bottom: 6px; font-size: 14px; }
input, textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(115,158,201,0.2);
  color: inherit;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s ease;
  width: 100%;
  max-width: 350px;
  margin: auto;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255,232,219,0.3);}

.contact-card h4 {
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 1.3rem;
}

.contact-card p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card i {
  margin-right: 8px;
  color: var(--accent);
}

.contact-card a {
  color: #fff;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 18px;
}

.social {
  font-size: 1.8rem;
  transition: transform 0.2s ease;
}

.social:hover {
  transform: scale(1.15);
}

/* Individual platform colors */
.social .fa-github {
  color: #171515;
}

.social .fa-linkedin {
  color: #0077b5;
}

.social .fa-instagram {
  color: #e4405f;
}

.formItem {
  color: #fff;
}

/* ====== Footer ====== */
footer {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(115,158,201,0.2);
}



/* ====== Animation ====== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 700ms cubic-bezier(.2,.9,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  nav ul { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
