/* =========================================================
   PORTFOLIO STYLESHEET
   Theme: Indigo / Lime / White - flat colours, square edges
   ========================================================= */

/* ---------- CSS VARIABLES (our color palette & spacing) ---------- */
:root {
  --color-page:         #050506; /* overall site background - dark/near-black */
  --color-white:      #ffffff;   /* hover background (cards flip to this) */
  --color-ink:         #16152e;  /* dark text used once a card/hover turns white */
  --color-text:          #f3f3f8; /* main body text colour on the dark page */
  --color-muted:        #9d9db3; /* secondary text on the dark page */
  --color-purple:        #4b39ef; /* primary brand colour (hero, buttons, cards) */
  --color-purple-dark:    #372ac2; /* pressed / darker purple */
  --color-lime:            #d6ff45; /* accent colour (hero, highlights) */
  --color-line:              #2a2a35; /* flat divider colour on the dark page */

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1150px;
  --transition: 0.25s ease;
}

/* ---------- RESET (removes default browser spacing) ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* every corner in this design stays square/edged */
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-page);
  border-bottom: 2px solid var(--color-line);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo .dot {
  color: var(--color-purple);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  position: relative;
  padding: 4px 2px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active-link {
  color: var(--color-white);
  background: var(--color-purple);
}

/* Hamburger menu button - hidden on desktop, shown on mobile */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* When the menu is open, morph the three bars into an "X" */
.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO / LANDING SECTION
   Diagonal indigo + lime split, bold white headline,
   framed photo card on the right - flat colours only.
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}

/* Background layers: solid indigo base + a lime shape clipped
   into a diagonal. Plain flat colours, no gradients/glow. */
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-purple);
  z-index: -2;
}

.hero-bg-lime {
  position: absolute;
  inset: 0;
  background: var(--color-lime);
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%);
  z-index: -1;
}

/* Simple dot-grid accents (kept flat/plain, matching the
   reference image's dotted texture) */
.hero-dots {
  position: absolute;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  z-index: 0;
  pointer-events: none;
}

.hero-dots-1 {
  top: 14%;
  left: 8%;
}

.hero-dots-2 {
  bottom: 12%;
  right: 22%;
  background-image: radial-gradient(rgba(22, 21, 46, 0.35) 1.5px, transparent 1.5px);
}

/* The squiggle line is hidden - plain colours only, no
   decorative curved/fancy line elements in this version. */
.hero-squiggle {
  display: none;
}

/* Small staircase accent kept, but styled as plain flat strokes */
.hero-stairs {
  position: absolute;
  bottom: 8%;
  left: 6%;
  width: 60px;
  height: 40px;
  color: rgba(255, 255, 255, 0.6);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* ----- LEFT SIDE: text info ----- */
.hero-left {
  flex: 1;
  max-width: 560px;
}

.hero-eyebrow {
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 14px;
  opacity: 0.9;
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.hero-headline span {
  color: var(--color-white);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.hero-desc {
  color: var(--color-white);
  opacity: 0.95;
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 26px;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  padding-top: 18px;
}

.hero-mini-grid p {
  color: var(--color-white);
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ----- Buttons ----- */
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--color-ink);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-white);
  border-color: var(--color-ink);
}

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

/* ----- Social icon buttons ----- */
.social-buttons {
  display: flex;
  gap: 14px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-white);
  transition: var(--transition);
}

.social-btn:hover {
  color: var(--color-ink);
  background: var(--color-white);
}

/* ----- RIGHT SIDE: profile picture ----- */
.hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-photo-wrap {
  position: relative;
  width: 340px;
  height: 400px;
  background: var(--color-white);
  padding: 10px;
  z-index: 1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll-down hint arrow at bottom of hero */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 1.4rem;
  z-index: 1;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Thin vertical strip of small square/diamond marks at the
   far right edge of the hero, echoing the reference image */
.hero-edge-icons {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 1;
}

.edge-shape {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-ink);
}

.edge-diamond {
  background: var(--color-ink);
  border: none;
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
}

/* =========================================================
   GENERIC SECTION STYLES (About, Skills, Projects, Contact)
   ========================================================= */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
  scroll-margin-top: 90px; /* keeps section titles from hiding under the fixed navbar when jumped to via a nav link */
}

#home {
  scroll-margin-top: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title span {
  color: var(--color-white);
  background: var(--color-purple);
  padding: 4px 10px;
  font-size: 1.1rem;
}

/* ---------- About ---------- */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.about-content p {
  flex: 2;
  min-width: 260px;
  color: var(--color-muted);
}

/* Since the contact form was removed, the info column now stands
   alone - keep it readable and not stretched full width */
.contact-wrapper .contact-info {
  max-width: 460px;
}

.about-info {
  flex: 1;
  min-width: 220px;
  background: var(--color-purple);
  border: 2px solid var(--color-ink);
  padding: 24px;
  color: var(--color-white);
  transition: background var(--transition), color var(--transition);
}

.about-info:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

.about-info li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.about-info:hover li {
  border-bottom-color: var(--color-line);
}

.about-info li:last-child {
  border-bottom: none;
}

.about-info strong {
  color: inherit;
  margin-right: 6px;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--color-purple);
  border: 2px solid var(--color-ink);
  padding: 30px 16px;
  text-align: center;
  color: var(--color-white);
  transition: background var(--transition), color var(--transition);
}

.skill-card:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

.skill-card i {
  font-size: 2.2rem;
  color: inherit;
  margin-bottom: 12px;
  display: inline-block;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.project-card {
  background: var(--color-purple);
  border: 2px solid var(--color-ink);
  padding: 30px;
  color: var(--color-white);
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.project-card:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

.project-icon {
  width: 50px;
  height: 50px;
  background: var(--color-ink);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  transition: background var(--transition), color var(--transition);
}

.project-card:hover .project-icon {
  background: var(--color-purple);
  color: var(--color-white);
}

.project-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 10px;
  color: inherit;
}

.project-card p {
  color: inherit;
  opacity: 0.9;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* ----- Technology tag pills shown on each project card ----- */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-ink);
  border: 1px solid var(--color-ink);
  padding: 4px 12px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.project-card:hover .tech-tag {
  background: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-ink);
}

/* ----- GitHub / Live Demo buttons on each project card ----- */
.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
  background: var(--color-white);
  border: 2px solid var(--color-ink);
  padding: 9px 16px;
  transition: background var(--transition), color var(--transition);
}

.link-btn:hover {
  background: var(--color-ink);
  color: var(--color-white);
}

/* ---------- Academic Background ---------- */
.education-card {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--color-purple);
  border: 2px solid var(--color-ink);
  padding: 32px;
  max-width: 640px;
  color: var(--color-white);
  transition: background var(--transition), color var(--transition);
}

.education-card:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

.education-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--color-ink);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  transition: background var(--transition), color var(--transition);
}

.education-card:hover .education-icon {
  background: var(--color-purple);
}

.education-details h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: inherit;
}

.education-institute {
  color: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.education-location {
  color: inherit;
  opacity: 0.85;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Contact ---------- */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1;
  min-width: 260px;
}

.contact-info p {
  color: var(--color-muted);
  margin-bottom: 22px;
  max-width: 400px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  background: var(--color-purple);
  border: 2px solid var(--color-ink);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 26px;
  transition: background var(--transition), color var(--transition);
}

.contact-email-link:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

.contact-socials {
  margin-top: 6px;
}

.contact-socials .social-btn {
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.contact-socials .social-btn:hover {
  background: var(--color-ink);
  color: var(--color-white);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 2px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer span {
  color: var(--color-purple);
  font-weight: 600;
}

/* =========================================================
   RESPONSIVE STYLES
   ========================================================= */
@media (max-width: 860px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-mini-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-buttons,
  .social-buttons {
    justify-content: center;
  }

  .hero-photo-wrap {
    width: 240px;
    height: 280px;
  }

  .hero-edge-icons {
    display: none;
  }

  .education-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-page);
    border-bottom: 2px solid var(--color-line);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-btn {
    display: flex;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
