/* Michel Abboud CV - Clean Professional Style */

:root {
  --primary: #2c3e50;
  --accent: #3498db;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-alt: #f8f9fa;
  --border: #e1e4e8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.2rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.3em;
  margin-top: 0;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3em;
}

h3 {
  font-size: 1.2rem;
  color: var(--accent);
}

p {
  margin: 1em 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

header.profile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: left;
}

.profile-photo {
  width: 120px;
  height: auto;
  object-fit: cover;
}

.profile-info {
  flex: 0 1 auto;
}

.profile-info h1 {
  margin: 0;
}

header h1 {
  border: none;
  margin-bottom: 0.2em;
}

.subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin: 0;
}

/* Navigation */
.doc-nav {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.doc-nav h2 {
  margin-top: 0;
  border: none;
}

.doc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-nav li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.doc-nav li:last-child {
  border-bottom: none;
}

.pdf-link {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Lists */
ul, ol {
  padding-left: 1.5em;
}

li {
  margin: 0.5em 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
}

tr:hover {
  background: var(--bg-alt);
}

/* Code blocks */
code {
  background: var(--bg-alt);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent);
  margin: 1em 0;
  padding: 0.5em 1em;
  background: var(--bg-alt);
  color: var(--text-light);
}

blockquote p {
  margin: 0;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Strong text */
strong {
  color: var(--primary);
}

/* Contact section */
.contact {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.contact h2 {
  margin-top: 0;
  border: none;
}

.contact ul {
  list-style: none;
  padding: 0;
}

.contact li {
  margin: 0.3em 0;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.5rem;
  }
}

/* Portfolio / Project Cards */
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.project-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card h3 a {
  color: var(--primary);
  font-weight: 600;
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-description {
  color: var(--text);
  margin: 0.75rem 0 1rem 0;
  line-height: 1.7;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Tech Tags / Badges */
.tech-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #e8ecf0 100%);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.tech-tag.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%);
  color: white;
  border-color: transparent;
}

.tech-tag.highlight {
  background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
  color: white;
  border-color: transparent;
}

.tech-tag.creative {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
  border-color: transparent;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.wip {
  background: #fff3cd;
  color: #856404;
}

.status-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* GitHub Link Style */
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-alt);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.github-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  text-decoration: none;
}

.github-link svg {
  width: 16px;
  height: 16px;
}

/* Feature List in Cards */
.feature-list {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
  color: var(--text);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Portfolio Section Header */
.portfolio-intro {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #eef2f7 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
}

.portfolio-intro p {
  margin: 0;
  color: var(--text);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments for portfolio */
@media (max-width: 768px) {
  .project-card {
    padding: 1rem;
  }

  .project-meta {
    gap: 0.4rem;
  }

  .tech-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Profile Photo Click Animations */
.profile-photo {
  cursor: pointer;
  transition: transform 0.1s ease;
}

.profile-photo.animating {
  pointer-events: none;
}

.profile-photo.spin {
  animation: spin 0.6s ease-in-out;
}

.profile-photo.bounce {
  animation: bounce 0.5s ease;
}

.profile-photo.wiggle {
  animation: wiggle 0.5s ease;
}

.profile-photo.pulse {
  animation: pulse 0.6s ease;
}

.profile-photo.flip {
  animation: flip 0.6s ease;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-20px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-10px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(15deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(52, 152, 219, 0); }
  50% { transform: scale(1.15); box-shadow: 0 0 20px rgba(52, 152, 219, 0.6); }
}

@keyframes flip {
  0% { transform: perspective(400px) rotateY(0); }
  100% { transform: perspective(400px) rotateY(360deg); }
}

/* Print styles */
@media print {
  body {
    font-size: 11pt;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  a {
    color: var(--text);
  }

  .doc-nav, .contact, footer {
    display: none;
  }

  .project-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
