/* ================================
   PORTFOLIO LAYOUT
   ================================ */

.page-portfolio {
  background: var(--bg);
  color: var(--ink);
}

/* ================================
   NAV
   ================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 237, 224, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  font-family: var(--font-body);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  padding: 9px 18px;
  background: var(--emerald);
  color: var(--gold-soft);
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--emerald-deep);
  transform: translateY(-1px);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink);
  font-family: 'Inter', var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-toggle:hover {
  background: var(--emerald);
  color: var(--gold-soft);
  border-color: var(--emerald);
  transform: translateY(-1px);
}

.lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.lang-toggle:hover .lang-dot {
  background: var(--gold-light);
}

.lang-current {
  line-height: 1;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* ================================
   HERO
   ================================ */
.hero {
  padding: 60px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b8924a' stroke-width='0.3' opacity='0.25'%3E%3Cpath d='M40 10L48 26L65 28L52 41L55 58L40 50L25 58L28 41L15 28L32 26Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 24px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-name-accent {
  color: var(--emerald);
  display: inline-block;
}

.hero-role {
  font-family: var(--font-kufi);
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-role strong {
  color: var(--gold);
  font-weight: 700;
}

.role-sep {
  color: var(--gold);
  font-weight: 700;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-bio a {
  color: var(--emerald);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.hero-bio a:hover {
  color: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 50px;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--emerald);
  color: var(--gold-soft);
  box-shadow: 0 6px 20px rgba(31, 74, 58, 0.25);
}

.btn-primary:hover {
  background: var(--emerald-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31, 74, 58, 0.35);
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: white;
  border-color: var(--gold);
  color: var(--emerald);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--gold);
  color: var(--emerald-deep);
}

.btn-light:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.hero-actions {
  margin-bottom: 0;
}

/* ================================
   SECTION SHARED
   ================================ */
.section {
  padding: 56px 20px;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 72px 24px;
  }
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 40px;
  text-align: center;
}

.kicker {
  font-family: var(--font-kufi);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 8px;
}

.kicker-light {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* ================================
   ABOUT (text-only, centered)
   ================================ */
.about-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  margin-bottom: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

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

/* ================================
   ORKAKWT FEATURE
   ================================ */
.section-feature {
  padding-top: 32px;
  padding-bottom: 80px;
}

.feature-card {
  background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  color: var(--bg-soft);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 32px;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L34 22L52 25L38 36L42 54L30 44L18 54L22 36L8 25L26 22Z' fill='none' stroke='%23d4ae6d' stroke-width='0.5' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  opacity: 0.3;
  pointer-events: none;
}

.feature-content {
  position: relative;
  z-index: 1;
}

.feature-title {
  margin: 8px 0 4px;
}

.brand-name {
  font-family: 'JetBrains Mono', 'Cairo', monospace;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-sub {
  font-family: var(--font-kufi);
  font-size: 1.05rem;
  color: var(--gold-soft);
  margin-bottom: 16px;
  font-weight: 500;
  opacity: 0.9;
}

.feature-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--bg-soft);
  margin-bottom: 24px;
  opacity: 0.92;
}

.feature-text strong {
  color: var(--gold-light);
  font-weight: 600;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  padding: 6px 14px;
  background: rgba(212, 174, 109, 0.15);
  border: 1px solid rgba(212, 174, 109, 0.3);
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 30px;
}

.feature-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-visual {
  position: relative;
  z-index: 1;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 260px;
  margin: 0 auto;
}

.visual-cell {
  aspect-ratio: 1;
  background: rgba(212, 174, 109, 0.1);
  border: 1px solid rgba(212, 174, 109, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--gold-soft);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.visual-emerald {
  background: rgba(31, 74, 58, 0.6);
  color: var(--gold-soft);
}

.visual-gold {
  background: var(--gold);
  color: var(--emerald-deep);
  border-color: var(--gold);
}

@media (min-width: 768px) {
  .feature-card {
    grid-template-columns: 1.5fr 1fr;
    padding: 56px 48px;
    gap: 48px;
    align-items: center;
  }
}

/* ================================
   TIMELINE
   ================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.timeline-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 16px;
  transition: all 0.2s ease;
}

.timeline-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-date {
  font-family: var(--font-kufi);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald);
}

.timeline-location {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.timeline-org {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-points li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-inline-start: 18px;
  position: relative;
}

.timeline-points li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-points strong {
  color: var(--ink);
  font-weight: 600;
}

.timeline-extra {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.timeline-extra strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 768px) {
  .timeline-item {
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
    padding: 28px 32px;
  }
}

/* ================================
   PROJECTS
   ================================ */
.projects-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.project-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: all 0.2s ease;
}

.project-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card-featured {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #faf0d8 100%);
  border-color: var(--gold);
}

.project-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg);
  color: var(--ink-soft);
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-badge-live {
  background: var(--emerald);
  color: var(--gold-soft);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag-sm {
  padding: 4px 10px;
  font-size: 0.72rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 500;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap 0.2s ease;
}

.project-link:hover {
  gap: 10px;
  color: var(--gold);
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================
   SKILLS
   ================================ */
.skills-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.skill-group {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.skill-title {
  font-family: var(--font-kufi);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--emerald);
  color: var(--gold-soft);
  border-color: var(--emerald);
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================
   CONTACT
   ================================ */
.section-contact {
  padding-top: 40px;
  padding-bottom: 64px;
}

.contact-card {
  background: var(--emerald-deep);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  color: var(--bg-soft);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10L48 26L65 28L52 41L55 58L40 50L25 58L28 41L15 28L32 26Z' fill='none' stroke='%23d4ae6d' stroke-width='0.4' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.25;
  pointer-events: none;
}

.contact-head {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--gold-soft);
  margin: 8px 0 12px;
}

.contact-sub {
  color: var(--bg-soft);
  opacity: 0.8;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(245, 237, 224, 0.08);
  border: 1px solid rgba(212, 174, 109, 0.2);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--bg-soft);
  transition: all 0.2s ease;
}

.contact-item:hover {
  background: rgba(245, 237, 224, 0.14);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--emerald-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--gold-light);
  opacity: 0.8;
  font-weight: 500;
}

.contact-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  word-break: break-word;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-card {
    padding: 56px 48px;
  }
}

/* ================================
   FOOTER
   ================================ */
.footer {
  padding: 32px 20px 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
}
