/* ============================================================
   NAHEEM TAOFEEK — PORTFOLIO
   Style: Editorial / Magazine — Warm Ivory & Deep Charcoal
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg:         #FAF8F4;
  --surface:    #FFFFFF;
  --text:       #1A1A1A;
  --text-muted: #6B6B6B;
  --border:     #E5E0D8;
  --accent:     #C8602E;
  --accent-lt:  #F4E4DA;
  --accent-dk:  #A04820;
  --green:      #22C55E;
  --re-badge:   #2D6A4F;
  --re-badge-bg:#D8F3DC;
  --auto-badge: #1B4F72;
  --auto-badge-bg:#D6EAF8;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --radius:     12px;
  --radius-sm:  6px;
  --shadow:     0 2px 20px rgba(0,0,0,0.07);
  --shadow-md:  0 8px 40px rgba(0,0,0,0.10);

  --nav-h: 68px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section spacing ---- */
section {
  padding: 96px 0;
}

/* ---- Section labels ---- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---- Section headings ---- */
h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 48px;
  color: var(--text);
}

h2 em {
  font-style: italic;
  color: var(--accent);
}

h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 40px;
  margin-top: -28px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,96,46,0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

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

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

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

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
}

.nav-cta:hover { background: var(--accent-dk) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: clamp(160px, 22vw, 280px);
  font-weight: 700;
  font-style: italic;
  color: var(--border);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 48px;
  width: 100%;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 16px;
  color: var(--text);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-role {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Photo */
.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
}

.photo-placeholder {
  width: 320px;
  height: 380px;
  background: linear-gradient(135deg, var(--accent-lt) 0%, #EBD5C8 100%);
  border-radius: 24px 24px 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 5rem;
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.photo-badge {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--text);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.about-text h2 { margin-bottom: 24px; }

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text p strong { color: var(--text); font-weight: 600; }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pillar:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(200,96,46,0.1);
}

.pillar-icon { font-size: 1.4rem; line-height: 1; margin-top: 2px; }

.pillar strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.pillar p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* About card */
.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.about-card h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.facts-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.facts-list li:last-child { border-bottom: none; }
.facts-list li span { font-size: 1.1rem; }

/* ============================================================
   SKILLS
   ============================================================ */
#skills {
  background: var(--bg);
}

.skills-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.skills-group h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}

.skill-chip:hover {
  background: var(--accent-lt);
  border-color: var(--accent);
}

/* Tools */
.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: box-shadow 0.2s;
}

.tool-card:hover { box-shadow: var(--shadow); }

.tool-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.meta-icon { background: #e7f0fd; color: #1877f2; font-style: italic; font-family: var(--font-head); }
.ig-icon   { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.x-icon    { background: #000; color: #fff; font-family: var(--font-head); font-style: italic; }
.li-icon   { background: #0a66c2; color: #fff; font-family: var(--font-head); }
.fb-icon   { background: #1877f2; color: #fff; font-family: var(--font-head); }
.gs-icon   { background: #e8f5e9; color: #1e8e3e; }

/* Languages */
.lang-list { display: flex; flex-direction: column; gap: 20px; }

.lang-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lang-flag { font-size: 1.8rem; line-height: 1; }

.lang-item strong { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.lang-item small { font-size: 0.78rem; color: var(--text-muted); }

.lang-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 6px 0 4px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

/* ============================================================
   EXPERIENCE / CASE STUDIES
   ============================================================ */
#experience {
  background: var(--surface);
}

.case-study {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 40px;
  transition: box-shadow 0.3s;
}

.case-study:hover {
  box-shadow: var(--shadow-md);
}

.cs-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.cs-brand-badge {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.real-estate { background: var(--re-badge-bg); color: var(--re-badge); }
.automotive  { background: var(--auto-badge-bg); color: var(--auto-badge); }

.cs-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cs-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.cs-left h3 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cs-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.cs-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.cs-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-bullets li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.cs-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* Metrics */
.cs-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cs-metrics--single { grid-template-columns: 1fr; }

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.metric-card.highlight {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.metric-card.highlight .metric-label { color: rgba(255,255,255,0.8); }

.metric-card.big-metric { padding: 28px; }

.metric-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Mockup area */
.cs-mockup-area {
  margin-top: 32px;
}

.mockup-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--surface);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
#portfolio {
  background: var(--bg);
}

.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  margin-top: -20px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.portfolio-card[style*="display: none"] { display: none !important; }

.card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.placeholder-thumb {
  background: var(--accent-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 20px; }

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-body h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.card-metrics {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.card-metrics span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
}

.card-link {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  transition: gap 0.2s;
}

.card-link:hover { text-decoration: underline; }

.add-card {
  border: 2px dashed var(--border);
  background: transparent;
}

.add-card:hover { transform: none; box-shadow: none; }

.add-card-inner {
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 8px;
}

.add-card-inner span {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--border);
}

.add-card-inner p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   EDUCATION
   ============================================================ */
#education {
  background: var(--surface);
}

.education-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 700px;
}

.edu-icon { font-size: 2.5rem; }

.edu-degree {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.education-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.edu-school {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.edu-years {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.edu-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(200,96,46,0.1);
}

a.contact-item { cursor: pointer; }

.contact-item.location { cursor: default; }

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item.whatsapp .contact-item-icon { background: #d4edda; color: #25d366; }
.contact-item.email    .contact-item-icon { background: var(--accent-lt); color: var(--accent); }
.contact-item.linkedin .contact-item-icon { background: #dce8f6; color: #0a66c2; }
.contact-item.location .contact-item-icon { background: var(--bg); color: var(--text-muted); }

.contact-item-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Contact form */
.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,96,46,0.1);
}

textarea { resize: vertical; }

.form-submit { width: 100%; justify-content: center; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--text);
  color: #fff;
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-bottom {
  padding: 16px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200,96,46,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover { transform: translateY(-2px); }

/* ============================================================
   ANIMATIONS (minimal, scroll-triggered via JS class)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-bg-text { font-size: 140px; right: -40px; top: auto; bottom: -40px; transform: none; }
  .hero-text { order: 1; }
  .hero-photo { order: 0; }
  .photo-placeholder { width: 240px; height: 280px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }

  .skills-wrapper { grid-template-columns: 1fr 1fr; }
  .skills-wrapper .skills-group:last-child { grid-column: 1 / -1; }

  .cs-body { grid-template-columns: 1fr; }
  .cs-metrics { grid-template-columns: repeat(3, 1fr); }

  .portfolio-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 680px) {
  section { padding: 64px 0; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-cta {
    margin: 16px 24px;
    border-radius: var(--radius-sm);
    text-align: center;
  }

  h2 { font-size: 1.8rem; }
  h1 { font-size: 3rem; }

  .hero-stats { gap: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .about-pillars { grid-template-columns: 1fr; }

  .skills-wrapper { grid-template-columns: 1fr; }

  .cs-metrics { grid-template-columns: 1fr 1fr; }

  .case-study { padding: 24px; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .portfolio-filters { gap: 6px; }

  .education-card { flex-direction: column; gap: 16px; padding: 24px; }

  .contact-form-wrapper { padding: 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 16px; }
}


/* ---- Copywriter badge ---- */
.copywriter {
  background: #EDE9FE;
  color: #5B21B6;
}

/* ---- Copywriter results list ---- */
.copy-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.copy-result-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.copy-result-item:hover {
  border-color: #7C3AED;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.copy-result-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.copy-result-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.copy-result-num {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #5B21B6;
  line-height: 1.2;
}

.copy-result-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ---- Copywriting portfolio cards ---- */
.copy-thumb {
  background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
}

.copy-tag {
  color: #5B21B6;
}

.copy-link {
  color: #5B21B6 !important;
}