/*
 * Global Stylesheet for razvanioan.ro
 *
 * The design embraces a minimalist aesthetic inspired by Apple: abundant white space,
 * restrained colour palette, strong typography and clean layouts.  Responsive rules
 * ensure a flawless experience across devices.  Variables are defined on the
 * :root element to centralise configuration of colours and spacing.
 */

/* Font import from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --color-background: #f9f9f9;
  --color-text: #222222;
  --color-accent: #b69b5b; /* muted gold for premium accent */
  --color-muted: #5f5f5f;
  --max-width: 1200px;
  --spacing-section: 6rem;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

/* Container to center content and constrain width */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
section {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

section:last-of-type {
  border-bottom: none;
}

/* Header / Navigation */
header {
  position: sticky;
  top: 0;
  background: var(--color-background);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
}

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

nav li a {
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
}

nav li a:hover {
  color: var(--color-accent);
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 550px;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--color-muted);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  text-align: center;
  display: inline-block;
}

/* Primary button with solid accent background */
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: #a0834f;
}

/* Secondary button with outline */
.btn-secondary {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Text link button */
.btn-link {
  background: none;
  color: var(--color-accent);
  border: none;
  padding: 0.75rem 0;
  font-weight: 500;
  line-height: 1;
}
.btn-link:hover {
  text-decoration: underline;
}

.hero-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Section headings */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* About section */
.about p {
  font-size: 1.125rem;
  max-width: 800px;
}

/* Experience */
.experience-item {
  margin-bottom: 2rem;
}

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

.experience-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.experience-item p {
  font-size: 1rem;
  max-width: 800px;
}

/* Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.expertise-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.expertise-item p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* CV Snapshot */
.cv-snapshot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv-snapshot ul {
  list-style: disc;
  padding-left: 1.2rem;
  max-width: 800px;
}

.cv-snapshot li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Insights preview */
.insights-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.insight-card {
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  background: #fff;
  transition: transform 0.2s;
}

.insight-card:hover {
  transform: translateY(-4px);
}

.insight-card h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.insight-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.insights-link {
  margin-top: 2rem;
  text-align: center;
}

/* Credibility metrics strip */
.metrics {
  background: #f2f2f2;
  padding: 2rem 0;
}
.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}
.metric {
  text-align: center;
  flex: 1 1 150px;
}
.metric .number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
}
.metric .label {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact */
.contact-details {
  font-size: 1.1rem;
  line-height: 2;
}

.contact-details a {
  color: var(--color-accent);
  font-weight: 500;
}

/* Career Timeline */
.timeline {
  position: relative;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.timeline-container {
  display: flex;
  overflow-x: auto;
  padding-bottom: 2rem;
  /* Hide scrollbar */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.timeline-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
}
.timeline-item {
  position: relative;
  flex: 0 0 220px;
  margin-right: 2rem;
}
.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-bottom: 1rem;
}
.timeline-content {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
  min-height: 120px;
}
.timeline-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.timeline-content p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Timeline line connecting markers */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0,0,0,0.1);
  z-index: -1;
}

@media (max-width: 768px) {
  .timeline-item {
    flex: 0 0 180px;
  }
  .timeline-content {
    min-height: 140px;
  }
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  background: var(--color-background);
}

/* What Shaped Me as a Leader section */
.shaped-leader {
  text-align: center;
}

/* Intro text for leader section */
.shaped-leader .section-intro {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Wrapper to constrain image width and add spacing */
.shaped-leader .leader-image-wrapper {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Image styling */
.shaped-leader img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text h2 {
    font-size: 1.25rem;
  }
  :root {
    --spacing-section: 4rem;
  }
}