/* Dark Industrial Aesthetic - Ayoub Sehlaoui */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --text-primary: #d4d4d4;
  --text-muted: #888888;
  --border-color: #333333;
  --accent-blue: #5b7c99;
  --accent-rust: #b85c38;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
}

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

/* Navigation */
nav {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

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

nav .logo {
  font-size: 0.875rem;
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav .nav-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 4rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.hero-image img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s;
}

.hero-image img:hover {
  filter: grayscale(0%);
}

.hero-content {
  padding-top: 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 40rem;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  border: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: border-color 0.3s;
  margin-top: 1rem;
}

.btn:hover {
  border-color: var(--text-primary);
}

/* Experience Section */
.experience-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

.experience-section h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  padding-left: 5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.timeline-item:hover {
  border-color: var(--accent-blue);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  transform: rotate(45deg);
  transition: all 0.3s;
}

.timeline-item:hover::before {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: rotate(45deg) scale(1.25);
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--accent-blue);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.timeline-details {
  list-style: none;
}

.timeline-details li {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.timeline-details li::before {
  content: '•';
  position: absolute;
  left: 0;
}

/* About Page Styles */
.about-hero {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.about-content {
  max-width: 48rem;
}

.about-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.education-section,
.skills-section {
  padding: 4rem 0;
}

.education-section h2,
.skills-section h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 56rem;
}

.education-card {
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.education-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(91, 124, 153, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.education-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.education-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.skill-card:hover {
  border-color: var(--accent-blue);
}

.skill-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.skill-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

footer .footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

footer .footer-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

footer .footer-links a:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .timeline {
    padding-left: 3rem;
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-item::before {
    left: -2.5rem;
  }
  
  nav .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  footer .container {
    flex-direction: column;
    text-align: center;
  }
}
