/* Raghad Alamoudi — Resume Styles (formal theme) */

:root{
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1f2937;      /* slate-800 */
  --muted:#6b7280;      /* slate-500 */
  --accent:#1e293b;     /* slate-900 */
  --primary:#3b4cca;    /* deep indigo */
  --radius:18px;
  --shadow:0 10px 24px rgba(0,0,0,.06);
}

*{ box-sizing:border-box; scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }

body{
  font-family: "Poppins","Segoe UI",Roboto,system-ui,-apple-system,sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f2f4ff, #e6ecff); /* soft professional gradient */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.brand{
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  color: #1e293b; /* dark navy text */
}

.nav-links a{
  text-decoration: none;
  color: #475569; /* slate gray */
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover{
  color: #3b4cca; /* your primary indigo blue */
}

nav{
  max-width: 1100px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand{
  text-decoration: none; font-weight: 800; font-size: 1.25rem;
  color: var(--accent);
}
.nav-links{ list-style:none; display:flex; gap:1.2rem; margin:0; padding:0; }
.nav-links a{
  text-decoration:none; color:var(--muted); font-weight:600;
}
.nav-links a:hover{ color: var(--primary); }

/* About */
.about{
  max-width: 1100px; margin: 40px auto 0; padding: 40px 20px 10px;
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
}
.avatar{
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow);
}
.about-text h1{ margin:0 0 6px; font-size: 2rem; color: var(--accent); }
.tagline{ color: var(--primary); font-weight: 600; margin: 0 0 6px; }
.objective{ margin:0; color: var(--text); }

/* Sections / cards */
.card{
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px; margin: 30px auto; max-width: 1100px;
}
h2{
  color: var(--accent);
  border-left: 5px solid var(--primary);
  padding-left: 10px; margin: 0 0 18px; font-size: 1.5rem;
}
h3{ margin: 10px 0 6px; color: var(--accent); }
h4{ margin: 12px 0 6px; color: var(--accent); font-size: 1.05rem; }
.muted{ color: var(--muted); }

/* Projects */
.project{ border-top: 1px solid #eef0f4; padding-top: 16px; margin-top: 16px; }
.project:first-of-type{ border-top:none; }

/* PDF preview */
.slide-preview{ margin-top: 10px; }
.pdf-frame{
  width: 100%;
  height: min(70vh, 760px);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

/* Contact */
.contact-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.contact-form label{ display:block; font-weight:600; margin: 8px 0 6px; }
.contact-form input, .contact-form textarea{
  width:100%; padding:12px 12px;
  border:1px solid #d1d5db; border-radius:10px; font-family: inherit;
}
button{
  margin-top: 10px; padding: 10px 20px; border: none;
  border-radius: 10px; background: var(--primary); color: #fff;
  font-weight: 600; cursor: pointer;
}
button:hover{ opacity: .95; }
.contact-info ul{ list-style: disc; margin:0 0 6px 1.3rem; padding:0; }
.socials{ margin-top: 14px; display:flex; gap:18px; }
.socials a{ color: var(--primary); text-decoration:none; font-weight:600; }
.socials a:hover{ text-decoration: underline; }

/* Footer */
footer{
  text-align:center; color: var(--muted);
  padding: 28px 0 38px;
}

/* Accessibility: Skip link (appears when tabbed) */
.skip-link{
  position:absolute; top:-40px; left: 12px;
  background:#000; color:#fff; padding:8px 14px; border-radius:8px;
  text-decoration:none; z-index:999; transition: top .25s ease;
}
.skip-link:focus{ top: 10px; }

/* Responsive */
@media (max-width: 992px){
  .about{ grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px){
  .about{ grid-template-columns: 1fr; text-align: left; }
  .avatar{ width: 180px; height: 180px; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 576px){
  .avatar{ width: 160px; height: 160px; }
  .nav-links{ flex-wrap: wrap; justify-content: center; }
}
