/* === Common Styles — Portfolio Jamal TANTAOUI === */
:root {
  --primary: #0f172a;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #eff6ff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green: #059669;
  --red: #dc2626;
  --orange: #ea580c;
  --radius: 10px;
}
/* ========== SKIP LINK ========== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
}
.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    overflow: visible;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* ========== UTILITY CLASSES ========== */
.list-reset { list-style: none; padding: 0; margin: 0; }
.flex-wrap-gap { display: flex; gap: 12px; flex-wrap: wrap; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ========== NAV ========== */
nav {
  position: fixed; top: 0; width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100; padding: 14px 0;
}
nav .container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.nav-name { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); letter-spacing: -0.3px; text-decoration: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 0.9rem; color: var(--gray-500);
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: #93c5fd; }
.nav-links a.active { color: var(--gray-900); font-weight: 600; }

/* Hamburger button */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--gray-700);
  border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero { padding: 140px 0 80px; }

.hero-photo {
  flex-shrink: 0; width: 200px; height: 200px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--gray-200);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-text { flex: 1; }
.hero-tag {
  display: inline-block; background: var(--accent-light); color: var(--accent);
  padding: 5px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 20px; letter-spacing: 0.3px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.15;
  color: var(--gray-900); margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero p { font-size: 1.1rem; color: var(--gray-600); max-width: 520px; margin-bottom: 20px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white; padding: 14px 28px;
  border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.hero-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gray-500); padding: 14px 20px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.hero-link:hover { color: var(--gray-700); }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section.alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; letter-spacing: -0.3px; }
.section-sub { color: var(--gray-500); margin-bottom: 16px; font-size: 1.05rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========== CTA SECTION ========== */
.cta-section { padding: 80px 0; text-align: center; }
.cta-box {
  background: var(--gray-900); border-radius: 16px; padding: 56px 40px; color: white;
}
.cta-box h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--gray-400); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; font-size: 1rem; }

/* ========== FORM ========== */
.form-inline { max-width: 420px; margin: 0 auto; text-align: left; }
.form-inline label { display: block; font-weight: 600; font-size: 0.8rem; margin-bottom: 6px; color: var(--gray-300); }
.form-inline input, .form-inline textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-700);
  background: var(--gray-800); color: white; border-radius: 8px;
  font-size: 0.9rem; font-family: inherit; margin-bottom: 14px; outline: none;
  transition: border 0.2s;
}
.form-inline input::placeholder, .form-inline textarea::placeholder { color: var(--gray-500); }
.form-inline input:focus, .form-inline textarea:focus { border-color: var(--accent); }
.form-inline textarea { resize: vertical; min-height: 80px; }
.form-inline button {
  width: 100%; padding: 14px; background: var(--accent); color: white;
  border: none; border-radius: 8px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.form-inline button:hover { background: var(--accent-dark); }
.success-msg { display: none; text-align: center; padding: 32px 0; }
.success-msg .check { font-size: 2.5rem; margin-bottom: 12px; }
.success-msg h3 { color: white; font-size: 1.1rem; margin-bottom: 8px; }
.success-msg p { color: var(--gray-400); font-size: 0.9rem; }

/* ========== FOOTER ========== */
footer {
  padding: 32px 0; text-align: center; color: var(--gray-400);
  font-size: 0.8rem; border-top: 1px solid var(--gray-200);
}
footer a { color: var(--gray-500); text-decoration: none; }
footer a:hover { color: var(--gray-700); }

/* ========== MOBILE ========== */
@media (max-width: 768px) {

  .hero p { margin-left: auto; margin-right: auto; }
  .hero-photo { width: 150px; height: 150px; }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Nav dropdown */
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
  }
  .nav-links a:last-child { border-bottom: none; }
}
