@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #0b0f1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2234;
  --surface: #1e293b;
  --border: #1e3a5f33;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #1e40af;
  --green: #22c55e;
  --gold: #f59e0b;
  --radius: 12px;
  --max-w: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: #93c5fd;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 26, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

.nav-cta:hover {
  background: var(--accent-light);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* SECTIONS */
section {
  padding: 100px 24px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 48px;
}

/* HERO */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, #0b0f1a 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, .08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: center;
}

.hero-tagline {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.hero-contact span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.hero-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-photo img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-dark);
}

.hero-photo .upwork-badge {
  width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
  position: static;
  border: none;
}

/* STATS */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}

.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* STRENGTHS */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strength-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
}

.strength-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.strength-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--accent-light);
}

.strength-card ul {
  list-style: none;
  padding: 0;
}

.strength-card li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.strength-card li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* PLATFORM CARDS */
.platforms-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  display: grid;
  grid-template-columns: 380px 1fr;
}

.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, .1);
}

.platform-img {
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.platform-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .4s;
}

.platform-card:hover .platform-img img {
  transform: scale(1.03);
}

.platform-card-reverse {
  grid-template-columns: 1fr 380px;
}

.platform-card-reverse .platform-img {
  order: 2;
}

.platform-card-reverse .platform-body {
  order: 1;
}

.platform-body {
  padding: 24px;
}

.platform-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.platform-body .url {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.platform-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.platform-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sub-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.platform-body ul {
  list-style: none;
  padding: 0;
}

.platform-body li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 0 2px 14px;
  position: relative;
}

.platform-body li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* EXPERIENCE */
.exp-timeline {
  position: relative;
  padding-left: 28px;
}

.exp-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.exp-entry {
  position: relative;
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .3s;
}

.exp-entry:hover {
  border-color: var(--accent);
}

.exp-entry::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-top h3 {
  font-size: 16px;
  font-weight: 700;
}

.exp-period {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.exp-company {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.exp-entry p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.exp-entry .sub-label {
  margin-top: 10px;
}

.exp-entry ul {
  list-style: none;
  padding: 0;
}

.exp-entry li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 2px 0 2px 14px;
  position: relative;
}

.exp-entry li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* COLLAPSIBLE EXPERIENCE */
.exp-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
  margin-bottom: 16px;
}

.exp-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.exp-toggle .arrow {
  transition: transform .3s;
  display: inline-block;
}

.exp-toggle.open .arrow {
  transform: rotate(180deg);
}

.exp-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.exp-collapse.open {
  max-height: 3000px;
}

/* EARLIER CAREER */
.earlier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.earlier-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color .2s;
}

.earlier-item:hover {
  border-color: var(--accent);
}

.earlier-item h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.earlier-item .earlier-company {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 2px;
}

.earlier-item .earlier-date {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.earlier-item ul {
  list-style: none;
  padding: 0;
}

.earlier-item li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 1px 0 1px 12px;
  position: relative;
}

.earlier-item li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* CONTACT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, .3);
}

.contact-info {
  margin-top: 16px;
}

.contact-info p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.contact-info a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-info a:hover {
  color: var(--accent-light);
}

/* TECH STACK */
.tech-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.tech-group h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(59, 130, 246, .12);
  color: var(--accent-light);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, .15);
}

/* EDUCATION & INTERESTS */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.edu-grid h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.edu-grid p {
  font-size: 14px;
  color: var(--text-muted);
}

.edu-grid ul {
  list-style: none;
  padding: 0;
}

.edu-grid li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0 3px 16px;
  position: relative;
}

.edu-grid li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* FOOTER */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

footer p {
  font-size: 13px;
  color: var(--text-dim);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

footer .footer-links a {
  font-size: 13px;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width:1024px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-photo {
    order: -1;
    text-align: center;
  }

  .hero-photo img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .platform-card,
  .platform-card-reverse {
    grid-template-columns: 1fr;
  }

  .platform-card-reverse .platform-img {
    order: 0;
  }

  .platform-card-reverse .platform-body {
    order: 0;
  }

  .platform-img {
    min-height: 180px;
  }
}

@media (max-width:768px) {
  section {
    padding: 64px 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strengths-grid {
    grid-template-columns: 1fr;
  }

  .platform-cols {
    grid-template-columns: 1fr;
  }

  .tech-groups {
    grid-template-columns: 1fr;
  }

  .edu-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .earlier-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .exp-timeline {
    padding-left: 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}