/*
Theme Name: Mohamed Audeh — Data Science Portfolio
Theme URI: https://mohamedaudeh.com
Author: Mohamed Audeh
Author URI: https://mohamedaudeh.com
Description: A professional personal portfolio theme for Data Scientists and AI Engineers. Clean, dark-hero design with full content blocks for projects, research, education, speaking, and contact.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: audeh-portfolio
Tags: portfolio, one-page, data-science, personal, dark
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #f8f9fc;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: #0B1F3A;
}

p {
  color: #4a5568;
  line-height: 1.75;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 42px 0;
}

.section-alt {
  background: #f0f4f8;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.section-header .icon {
  width: 36px;
  height: 36px;
  background: #E6F1FB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #185FA5;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #0B1F3A;
}

.section-pill {
  font-size: 12px;
  background: #E6F1FB;
  color: #0C447C;
  padding: 3px 12px;
  border-radius: 20px;
  margin-left: auto;
  font-weight: 500;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0B1F3A;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  font-weight: 400;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: #378ADD;
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 6px;
  font-weight: 500 !important;
  font-size: 13px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: #185FA5 !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: all 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0B1F3A 0%, #13325C 55%, #0F4A7A 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #1a3a5c;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 16px;
  color: #378ADD;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-tag {
  font-size: 12px;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #378ADD;
  color: #fff;
}

.btn-primary:hover {
  background: #185FA5;
  color: #fff;
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* Hero Photo */
.hero-photo-wrap {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

.hero-photo-placeholder svg {
  width: 52px;
  height: 52px;
  opacity: 0.3;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: #1a3a5c;
  padding: 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text h3 {
  font-size: 18px;
  color: #0B1F3A;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-highlight {
  background: #E6F1FB;
  border-left: 3px solid #378ADD;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 20px;
}

.about-highlight p {
  font-size: 14px;
  color: #0C447C;
  margin: 0;
  font-style: italic;
  line-height: 1.6;
}

.about-roles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.role-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.role-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #E6F1FB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.role-card h4 {
  font-size: 15px;
  color: #0B1F3A;
  margin-bottom: 4px;
}

.role-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(11,31,58,0.1);
  transform: translateY(-2px);
}

/* ADD NEW PROJECT CARD HERE — copy a .project-card block and paste below */

.project-card.wide {
  grid-column: span 2;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.project-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.project-meta h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0B1F3A;
  margin-bottom: 3px;
  line-height: 1.35;
}

.project-type {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}

.project-description {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tool-tag {
  font-size: 11.5px;
  color: #6b7280;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f8fafc;
}

/* Project color variants */
.icon-blue  { background: #E6F1FB; }
.icon-green { background: #EAF3DE; }
.icon-red   { background: #FAECE7; }
.icon-purple{ background: #EEEDFE; }
.icon-amber { background: #FAEEDA; }
.icon-teal  { background: #E1F5EE; }

/* ============================================================
   RESEARCH SECTION
   ============================================================ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.research-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s;
}

.research-card:hover {
  box-shadow: 0 4px 16px rgba(11,31,58,0.08);
}

/* ADD NEW RESEARCH CARD HERE — copy a .research-card block and paste below */

.research-category {
  font-size: 11px;
  font-weight: 600;
  color: #185FA5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.research-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #0B1F3A;
  margin-bottom: 8px;
  line-height: 1.4;
}

.research-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 12px;
}

.research-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.method-tag {
  font-size: 11px;
  background: #f0f4f8;
  color: #4a5568;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ============================================================
   TECH STACK SECTION
   ============================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stack-group {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

/* ADD NEW STACK GROUP HERE — copy a .stack-group block and paste below */

.stack-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.stack-group-icon {
  width: 28px;
  height: 28px;
  background: #E6F1FB;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #185FA5;
}

.stack-group h3 {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-pill {
  font-size: 12px;
  background: #E6F1FB;
  color: #0C447C;
  padding: 4px 11px;
  border-radius: 20px;
  font-weight: 500;
}

/* ============================================================
   EDUCATION SECTION
   ============================================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.edu-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.edu-card:hover {
  box-shadow: 0 4px 16px rgba(11,31,58,0.07);
}

/* ADD NEW EDUCATION CARD HERE — copy an .edu-card block and paste below */

.edu-icon {
  width: 40px;
  height: 40px;
  background: #E6F1FB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #185FA5;
  flex-shrink: 0;
}

.edu-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #0B1F3A;
  margin-bottom: 4px;
  line-height: 1.4;
}

.edu-institution {
  font-size: 13px;
  color: #6b7280;
}

.edu-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  background: #EAF3DE;
  color: #3B6D11;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 500;
}

/* ============================================================
   SPEAKING SECTION
   ============================================================ */
.speaking-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.speaking-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.speaking-item:hover {
  box-shadow: 0 4px 16px rgba(11,31,58,0.07);
}

/* ADD NEW SPEAKING ITEM HERE — copy a .speaking-item block and paste below */

.speaking-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #378ADD;
  flex-shrink: 0;
  margin-top: 6px;
}

.speaking-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0B1F3A;
  margin-bottom: 4px;
}

.speaking-item p {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

.speaking-year {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

/* ============================================================
   BLOG / PUBLICATIONS SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 6px 20px rgba(11,31,58,0.1);
  transform: translateY(-2px);
}

/* ADD NEW BLOG CARD HERE — copy a .blog-card block and paste below */

.blog-card-type {
  font-size: 11px;
  font-weight: 600;
  color: #185FA5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #0B1F3A;
  line-height: 1.45;
  margin-bottom: 8px;
  flex-grow: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #378ADD;
  font-weight: 500;
  margin-top: 12px;
}

.blog-card-link:hover {
  color: #185FA5;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: linear-gradient(135deg, #0B1F3A 0%, #13325C 100%);
  padding: 72px 0;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.contact-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-contact:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #071426;
  padding: 20px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-right {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    display: none;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .research-grid,
  .education-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .project-card.wide {
    grid-column: span 1;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-buttons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 52px 0 56px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .section {
    padding: 52px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
