/* ──────────────────────────────────────────────
   eltokhy.com  ·  Styles
   ────────────────────────────────────────────── */

/* ─── Design Tokens ─── */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #f0ece4;
  --text-secondary: #9a958d;
  --accent: #c9a96e;
  --accent-dim: rgba(201, 169, 110, 0.15);
  --border: rgba(255, 255, 255, 0.06);

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;

  --section-py: clamp(5rem, 12vh, 9rem);
  --inner-max: 960px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────────────
   Navigation
   ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  transition:
    background 0.4s,
    padding 0.4s,
    backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Mobile toggle */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

@media (max-width: 768px) {
  #nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 99;
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: all;
  }
  body.nav-open #nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open #nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open #nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ──────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 30% 60%,
      rgba(201, 169, 110, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      rgba(201, 169, 110, 0.04) 0%,
      transparent 50%
    ),
    var(--bg-primary);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
  transform: translateY(var(--parallax-y, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
}

.hero-greeting {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    180deg,
    var(--text-primary) 40%,
    var(--text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Hero social icons */
.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s,
    transform 0.3s;
}
.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-arrow {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: rotate(45deg) translateY(8px);
    opacity: 1;
  }
}

/* ──────────────────────────────────────────────
   Shared Section Styles
   ────────────────────────────────────────────── */
section:not(#hero) {
  padding: var(--section-py) clamp(1.5rem, 5vw, 4rem);
}
.section-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label i {
  font-size: 0.85rem;
}
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

/* ──────────────────────────────────────────────
   About
   ────────────────────────────────────────────── */
#about {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-content p {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 1.5rem;
  line-height: 1.85;
}
.about-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex: 1 1 240px;
}
.highlight-item i {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 2px;
}
.highlight-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.highlight-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ──────────────────────────────────────────────
   Experience (Timeline)
   ────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 4.5rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-primary);
  z-index: 1;
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  transition:
    border-color 0.35s,
    background 0.35s;
}
.timeline-content:hover {
  border-color: rgba(201, 169, 110, 0.15);
  background: var(--bg-card-hover);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.timeline-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}
.company-link {
  font-size: 0.9rem;
  color: var(--accent);
  transition: opacity 0.3s;
}
.company-link:hover {
  opacity: 0.75;
}
.company-link i {
  font-size: 0.7rem;
  margin-left: 3px;
}
.timeline-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.timeline-date i {
  margin-right: 4px;
}
.timeline-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.timeline-details {
  list-style: none;
  padding: 0;
}
.timeline-details li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.timeline-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
.timeline-details strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ──────────────────────────────────────────────
   Projects
   ────────────────────────────────────────────── */
#projects {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition:
    background 0.35s,
    border-color 0.35s,
    transform 0.35s;
}
.project-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 169, 110, 0.18);
  transform: translateY(-4px);
}
.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  gap: 1rem;
}
.project-icon {
  font-size: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
}
.project-links {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}
.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.project-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}
.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.project-card > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.2rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

/* ──────────────────────────────────────────────
   Skills
   ────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition:
    background 0.35s,
    border-color 0.35s,
    transform 0.35s;
}
.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 169, 110, 0.18);
  transform: translateY(-4px);
}
.skill-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.skill-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ──────────────────────────────────────────────
   Contact
   ────────────────────────────────────────────── */
#contact {
  text-align: center;
}
#contact .section-label {
  justify-content: center;
}
#contact .section-heading {
  margin-bottom: 3rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 1rem 2rem;
  border: 1px solid var(--border);
  border-radius: 60px;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
  min-width: 320px;
  justify-content: center;
}
.contact-item:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-dim);
}
.contact-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--accent);
}

/* ──────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────── */
#footer {
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  letter-spacing: 1px;
}

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .contact-item {
    min-width: auto;
    padding: 0.85rem 1.5rem;
    font-size: 0.88rem;
  }
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline-content {
    padding: 1.4rem 1.2rem;
  }
  .timeline-header {
    flex-direction: column;
  }
}
