/* ============================================================
   css/style.css
   Design system, layout, and all component styles.
   Import order: variables → reset → base → layout → components
============================================================ */

/* ── 1. CSS VARIABLES (Design Tokens) ── */
:root {
  /* Backgrounds */
  --bg: #0a0a0f;
  --bg-alt: #0f0f1a;
  --bg-card: #161625;
  --bg-input: #13131f;

  /* Borders */
  --border: #1e1e35;

  /* Brand Colors */
  --accent: #6c63ff;
  --accent2: #00d4ff;
  --green: #00ff88;

  /* Text */
  --text: #e8e8f0;
  --muted: #7a7a9a;

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Spacing */
  --section-pad: 7rem 5%;
  --max-width: 1200px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Transitions */
  --transition: 0.25s ease;
}

/* ── 2. RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── 3. SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* ── 4. SELECTION ── */
::selection {
  background: rgba(108, 99, 255, 0.35);
  color: var(--text);
}

/* ── 5. CANVAS BACKGROUND ── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}

/* ── 6. NAVIGATION ── */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 1px;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.8;
}

.logo span {
  color: var(--accent2);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent2);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent2);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger (hidden on desktop, shown on mobile via responsive.css) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

/* ── 7. SECTION BASE ── */
.section {
  padding: var(--section-pad);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section--alt {
  background: var(--bg-alt);
}

.section--hero {
  padding-top: 64px; /* offset for fixed navbar */
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  margin-bottom: 3rem;
}

/* ── 8. HERO ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-tag {
  font-family: var(--font-mono);
  color: var(--accent2);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent2);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-sub strong {
  color: var(--text);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.chip {
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
}

.chip--cyan {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--accent2);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  background: rgba(108, 99, 255, 0.08);
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.hero-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.hero-card-role {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--green);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.availability-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-row {
  display: flex;
  justify-content: space-around;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── 9. BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition:
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── 10. ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

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

.about-text strong {
  color: var(--text);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.skill-cat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.skill-cat h4 {
  color: var(--accent2);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  font-size: 0.75rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.highlight-card:hover {
  border-color: var(--accent2);
  border-left-color: var(--accent2);
  transform: translateY(-2px);
}

.highlight-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.highlight-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.highlight-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ── 11. EXPERIENCE TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent),
    var(--accent2),
    transparent
  );
}

.tl-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.tl-dot {
  position: absolute;
  left: -2.38rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px var(--accent);
}

.tl-dot--cyan {
  background: var(--accent2);
  box-shadow: 0 0 12px var(--accent2);
}

.tl-dot--red {
  background: #ff6b6b;
  box-shadow: 0 0 12px #ff6b6b;
}

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.tl-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.15);
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.tl-company {
  color: var(--accent2);
  font-weight: 700;
  font-size: 0.9rem;
}

.tl-date {
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.tl-role {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.tl-location {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.tl-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tl-bullets li {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}

.tl-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.tl-bullets li strong {
  color: var(--text);
}

.tl-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tl-tech span {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

/* ── 12. PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.proj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.proj-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.2);
}

.proj-card:hover::before {
  transform: scaleX(1);
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.proj-icon {
  font-size: 1.75rem;
}

.proj-links {
  display: flex;
  gap: 0.5rem;
}

.proj-link {
  color: var(--muted);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    border-color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.proj-link:hover {
  color: var(--accent2);
  border-color: var(--accent2);
}

.proj-badge {
  display: inline-block;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--green);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.proj-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.proj-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.proj-tech span {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

/* ── 13. CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.c-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.c-link-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(108, 99, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.c-link-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.c-link-val {
  font-size: 0.88rem;
  font-weight: 600;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

/* ── 14. FOOTER ── */
#footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 5%;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-logo {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.footer-logo span {
  color: var(--accent2);
}

#footer p {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-sub {
  font-size: 0.8rem !important;
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.75rem !important;
  opacity: 0.5;
}

.accent {
  color: var(--accent2);
}
.photo-wrap {
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
}
.btn-resume {
  background: transparent;
  color: var(--green);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--green);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-resume:hover {
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
}
/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  animation: fadeIn 1.5s ease 1s both;
}

.scroll-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow i {
  font-size: 0.75rem;
  color: var(--accent2);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.section--hero {
  padding-top: 64px;
  position: relative;
}

