@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* ─── Variables & Base ───────────────────────────────────── */
:root {
  --navy: #0a192f;
  --light-navy: #112240;
  --lightest-navy: #233554;
  --slate: #8892b0;
  --light-slate: #a8b2d8;
  --lightest-slate: #ccd6f6;
  --white: #e6f1ff;
  --teal: #64ffda;
  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "SF Mono", "Fira Code", monospace;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
#root {
  background-color: #0a192f;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0a192f;
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

::selection {
  background: var(--lightest-navy);
  color: var(--lightest-slate);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--lightest-navy); border-radius: 3px; }

/* ─── Spotlight (radial gradient follows cursor) ─────────── */
.spotlight {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(100, 255, 218, 0.06) 0%,
    transparent 70%
  );
}

/* ─── Custom Cursor ──────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(100, 255, 218, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

/* Cursor grows on hoverable elements */
body.cursor-hover .cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--teal);
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--teal);
}

/* ─── Layout ─────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6rem;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

/* ─── Left Panel (sticky) ────────────────────────────────── */
.left-panel {
  width: 45%;
  min-width: 300px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 0;
}

.left-top h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--lightest-slate);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.left-top h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--light-slate);
  margin-bottom: 1.25rem;
}

.left-top p {
  font-size: 0.95rem;
  color: var(--slate);
  max-width: 320px;
  line-height: 1.7;
}

/* Nav */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  width: fit-content;
}

.side-nav a .nav-line {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--slate);
  transition: width 0.2s, background 0.2s;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--lightest-slate);
}

.side-nav a:hover .nav-line,
.side-nav a.active .nav-line {
  width: 4rem;
  background: var(--lightest-slate);
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-icons a {
  color: var(--slate);
  font-size: 1.2rem;
  transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
  color: var(--lightest-slate);
  transform: translateY(-3px);
}

/* ─── Right Panel (scrollable) ───────────────────────────── */
.right-panel {
  flex: 1;
  padding: 6rem 0 6rem;
}

/* ─── Section shared ─────────────────────────────────────── */
section {
  margin-bottom: 6rem;
  scroll-margin-top: 6rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lightest-slate);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: "";
  display: block;
  height: 1px;
  width: 4rem;
  background: var(--lightest-navy);
}

/* ─── About ──────────────────────────────────────────────── */
.about-text p {
  color: var(--slate);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-text p a {
  color: var(--teal);
}

.about-text p a:hover {
  text-decoration: underline;
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--teal);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.resume-link:hover {
  background: rgba(100, 255, 218, 0.08);
}

/* ─── Experience ─────────────────────────────────────────── */
.exp-card {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
  cursor: default;
}

.exp-card:hover {
  background: var(--light-navy);
}

.exp-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 0.2rem;
}

.exp-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lightest-slate);
  margin-bottom: 0.25rem;
}

.exp-body h3 span {
  color: var(--teal);
}

.exp-body p {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal);
  background: rgba(100, 255, 218, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* ─── Skills ─────────────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-pill {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
  background: rgba(100, 255, 218, 0.08);
  border: 1px solid rgba(100, 255, 218, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}

.skill-pill:hover {
  background: rgba(100, 255, 218, 0.15);
  border-color: var(--teal);
}

/* ─── Projects ───────────────────────────────────────────── */
.project-card {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}

.project-card:hover {
  background: var(--light-navy);
}

.project-img {
  width: 7rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--lightest-navy);
}

.project-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lightest-slate);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-body h3 a {
  color: var(--lightest-slate);
  transition: color 0.2s;
}

.project-body h3 a:hover {
  color: var(--teal);
}

.project-body h3 i {
  font-size: 0.75rem;
  color: var(--slate);
}

.project-body p {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

/* ─── Contact ────────────────────────────────────────────── */
.contact-section {
  text-align: left;
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--lightest-slate);
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: 0.95rem;
  color: var(--slate);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--teal);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
}

.contact-btn:hover {
  background: rgba(100, 255, 218, 0.08);
}

/* ─── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 12, 27, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  animation: slideUp 0.25s ease;
  position: relative;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lightest-slate);
}

.modal-close {
  background: none;
  border: none;
  color: var(--slate);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--teal);
}

.modal-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.modal-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-slate);
  margin-bottom: 0.4rem;
}

.modal-field input,
.modal-field textarea {
  background: var(--lightest-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 4px;
  color: var(--lightest-slate);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.modal-field input::placeholder,
.modal-field textarea::placeholder {
  color: var(--slate);
  opacity: 0.6;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--teal);
}

.modal-field input.input-error,
.modal-field textarea.input-error {
  border-color: #ff6b6b;
}

.field-error {
  font-size: 0.75rem;
  color: #ff6b6b;
  margin-top: 0.3rem;
}

.modal-send-error {
  font-size: 0.82rem;
  color: #ff6b6b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.modal-submit:hover:not(:disabled) {
  background: rgba(100, 255, 218, 0.08);
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  text-align: center;
}

.modal-success i {
  font-size: 2.5rem;
  color: var(--teal);
}

.modal-success p {
  color: var(--light-slate);
  font-size: 0.95rem;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer-note {
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.8;
  margin-top: 4rem;
}

.footer-note a {
  color: var(--lightest-slate);
  font-weight: 600;
}

.footer-note a:hover {
  color: var(--teal);
}

/* ─── Navbar (mobile only) ───────────────────────────────── */
.navbar {
  display: none;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .layout {
    padding: 0 3rem;
    gap: 2rem;
  }
  .left-panel {
    width: 40%;
  }
  .left-top h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .navbar {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    z-index: 100;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--lightest-navy);
  }

  .nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo a {
    color: var(--teal);
    font-size: 1.4rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light-navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--lightest-navy);
  }

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

  .nav-links a {
    color: var(--lightest-slate);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

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

  .menu-btn {
    background: none;
    border: none;
    color: var(--teal);
    font-size: 1.3rem;
    cursor: pointer;
  }

  .layout {
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0;
  }

  .left-panel {
    width: 100%;
    position: static;
    height: auto;
    padding: 2rem 0 1rem;
  }

  .left-top h1 {
    font-size: 2rem;
  }

  .left-top h2 {
    font-size: 1rem;
  }

  .side-nav {
    display: none;
  }

  .social-icons {
    margin-top: 1.5rem;
  }

  .right-panel {
    padding: 2rem 0;
  }

  .exp-card,
  .project-card {
    grid-template-columns: 1fr;
  }

  .exp-date {
    padding-top: 0;
  }

  .project-img {
    width: 100%;
    height: 10rem;
  }
}

@media (max-width: 480px) {
  .layout {
    padding: 5rem 1rem 2rem;
  }

  .left-top h1 {
    font-size: 1.75rem;
  }

  .contact-section h2 {
    font-size: 1.75rem;
  }
}
