/* ===== BRITTANY-CHIANG INSPIRED DESIGN (Sky Blue + Gold) ===== */
:root {
  --sky: #5d9cec;       /* Azure / Sky Blue */
  --sky-light: #e6f0ff;
  --gold: #ff9e00;      /* Warm gold (as requested) */
  --gold-light: #fff4e6;
  --text: #1a1f2b;      /* Dark gray, not pure black */
  --text-gray: #666c7a;
  --bg: #f8fbff;        /* Very light blue-white */
  --border: #e0e6ef;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(93, 156, 236, 0.12);
  --transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body.lang-ar {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
}
body.lang-fr,
body.lang-en {
  font-family: 'Poppins', sans-serif;
  direction: ltr;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 8px;
  background: white;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.lang-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-gray);
  font-size: 0.9rem;
}

.lang-btn.active {
  background: var(--sky);
  color: white;
  transform: scale(1.05);
}

/* ===== HERO ===== */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.name {
  background: linear-gradient(90deg, var(--gold), #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2.2rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  margin: 0.4rem;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn.primary {
  background: var(--gold);
  color: white;
}

.btn.primary:hover {
  background: #e67e22;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(255, 158, 0, 0.3);
}

.btn.outline {
  border-color: var(--sky);
  color: var(--sky);
}

.btn.outline:hover {
  background: var(--sky-light);
  transform: translateY(-4px);
}

/* ===== SECTION ===== */
.section {
  padding: 6rem 0;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  color: var(--text);
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.8rem auto;
  border-radius: 2px;
}

/* ===== SKILLS GRID ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.skill-card {
  background: white;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--sky);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(93, 156, 236, 0.15);
}

.skill-card h3 {
  color: var(--sky);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

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

.skill-card li {
  padding: 0.4rem 0;
  color: var(--text-gray);
  position: relative;
  padding-left: 1.2rem;
}

.skill-card li::before {
  content: '•';
  color: var(--gold);
  position: absolute;
  left: 0;
  font-size: 1.3rem;
  line-height: 1;
}

/* ===== TIMELINE (Brittany Style) ===== */
.timeline {
  margin-top: 2.5rem;
}

.timeline-item {
  padding: 1.8rem 0;
  border-left: 2px solid var(--border);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sky);
  border: 3px solid white;
}

.timeline-date {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  flex-wrap: wrap;
}

.timeline-date span {
  white-space: nowrap;
}

.timeline-item h3 {
  color: var(--text);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.timeline-item ul {
  padding-left: 1.2rem;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.project-title {
  color: var(--sky);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.project-desc {
  color: var(--text-gray);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.local-note {
  background: var(--gold-light);
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-links a {
  color: var(--sky);
  font-weight: 600;
  position: relative;
}

.project-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sky);
  transition: width 0.3s ease;
}

.project-links a:hover::after {
  width: 100%;
}

/* ===== CONTACT ===== */
.contact-intro {
  text-align: center;
  max-width: 680px;
  margin: 1.8rem auto 2.5rem;
  font-size: 1.2rem;
  color: var(--text-gray);
}

.contact-info {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.contact-info p {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 1.05rem;
}

.contact-info i {
  width: 24px;
  color: var(--sky);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin: 2.2rem 0 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  color: var(--sky);
  font-size: 1.35rem;
  transition: var(--transition);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.social-links a:hover {
  background: var(--sky);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(93, 156, 236, 0.3);
}

.pfe-button {
  text-align: center;
  margin-top: 2.5rem;
}

/* ===== FOOTER ===== */
footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--text-gray);
  text-align: center;
  font-size: 0.95rem;
}

.footer-copyright {
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 5rem;
  }
  .hero h1 { font-size: 2.8rem; }
  .subtitle { font-size: 1.15rem; }
  .section { padding: 4.5rem 0; }
  .timeline-item::before {
    left: -5px;
    width: 12px;
    height: 12px;
  }
}
