
:root {
  --bg: #080914;
  --panel: #111326;
  --purple: #a855f7;
  --violet: #7c3aed;
  --text: #f5f3ff;
  --muted: #a6a5bb;
  --border: rgba(45, 5, 85, 0.886);
  --glass: rgba(17, 19, 38, 0.72);
  --shadow: rgba(124, 58, 237, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.16), transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "DM Sans", Arial, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* NAVIGATION */

.navbar {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 86px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 20, 0.65);
  backdrop-filter: blur(16px);
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 2px;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
}

#theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  transition: 0.25s ease;
}

#theme-toggle:hover {
  color: var(--purple);
  border-color: var(--purple);
  transform: rotate(12deg);
}

/* MAIN PRESENTATION */

#presentation {
  position: relative;
  width: 100%;
  height: calc(100dvh - 150px);
  min-height: 480px;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 35px 8%;
  opacity: 0;
  overflow: hidden;
  box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}
.screen.active {
  display: flex;
  opacity: 1;
  animation: screenFade 0.45s ease;
}

@keyframes screenFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HOME PAGE */

.home-screen {
  display: none;
  justify-content: space-between;
  gap: 5%;
  padding-top: 80px;
}

.home-screen.active {
  display: flex;
}

.hero-visual {
  position: relative;
  width: 40%;
  max-width: 460px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-glow {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 100%;
  background: linear-gradient(135deg, #5b21a8, #6e1088fd);
  filter: blur(40px);
  opacity: 0.50.;
  z-index: 0;
}

.profile-frame {
  position: relative;
  z-index: 1;
  width: 90%;
  aspect-ratio: 1;
  padding: 9px;
  border: 2px solid rgba(37, 3, 74, 0.918);
  border-radius: 50%;
  background: rgba(61, 2, 93, 0.926);
  box-shadow:
    0 0 15px rgba(101, 23, 175, 0.94),
    0 0 35px rgba(168, 85, 247, 0.3);
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
}

.hero-copy {
  width: 55%;
   max-width: 760px;
  font-size: 14px;
  line-height: 1.7;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--purple);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 60px;
  margin-bottom: 10px;
  font-size: clamp(3.5rem, 4.8vw, 4.8rem);
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(90deg, #c084fc, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.typing-caption {
  min-height: 24px;
  margin-bottom: 15px;
  color: #c084fc;
  font-size: 1.5rem;
  font-weight: 600;
}

.education-intro {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.education-intro p:first-child {
  color: var(--text);
  font-weight: 600;
}

.education-intro em {
  color: var(--purple);
}

/* CONTACT ME GRID TABLE */

.contact-table {
  width: 100%;
  max-width: 680px;
  margin-top: 15px;
  margin-bottom: 70px;
  padding: 30px;
  padding-bottom: 20px;
  border: 1px solid rgba(192, 132, 252, 0.5);
  border-radius: 20px;
  background: rgba(17, 19, 38, 0.65);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.12);
}

.contact-table h3 {
  color: var(--purple);
  margin-bottom: 1px;
  letter-spacing: 2px;
}

.contact-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.contact-table th,
.contact-table td {
  padding: 19px 16px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  text-align: left;
  line-height: 1.6;
}

.contact-table th {
  width: 40%;
  color: var(--text);
  font-size: 0.82rem;
}

.contact-table td {
  overflow-wrap: anywhere;
}

.contact-table td a {
  color: #c084fc;
  text-decoration: none;
}

.contact-table td a:hover {
  text-decoration: underline;
  color: var(--text);
}

/* OTHER CONTENT PAGES */

.content-screen {
  align-items: flex-start;
  justify-content: center;
}

#about .content-wrap {
  width: 100%;
  max-width: 1450px;
  margin: auto;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
  color: var(--muted);
}

.glass-card,
.about-card,
.education-card,
.achievement-card,
.family-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(15px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.glass-card h3,
.about-card h3,
.education-card h3,
.achievement-card h3,
.family-card h3 {
  margin-bottom: 12px;
  color: var(--purple);
}

.glass-card p,
.about-card p,
.education-card p,
.achievement-card p,
.family-card p {
  color: var(--muted);
  line-height: 1.8;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* FOOTER PAGE CONTROLS */

footer.page-controls {
  position: fixed;
  z-index: 30;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  border-top: 1px solid var(--border);
  background: rgba(8, 9, 20, 0.75);
  backdrop-filter: blur(16px);
}

.page-controls button {
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.25s ease;
}

.page-controls button:hover:not(:disabled) {
  color: var(--purple);
  transform: translateY(-2px);
}

.page-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-indicator {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  color: var(--text);
  font-size: 0.9rem;
}

.indicator-line {
  display: none;
}

.page-indicator span:last-child::before {
  content: "of";
  margin-right: 7px;
  color: var(--muted);
}

.indicator-line::after {
  content: "";
  display: block;
  width: 20%;
  height: 100%;
  border-radius: 10px;
  background: var(--purple);
}





/* RESPONSIVE DESIGN */

@media (max-width: 900px) {
  .navbar {
    padding: 0 4%;
  }

  .nav-links {
    gap: 25px;
  }

  .screen {
    padding-right: 5%;
    padding-left: 5%;
  }

  .home-screen {
    gap: 4%;
  }

  .hero-visual {
    width: 38%;
  }

  .hero-copy {
    width: 58%;
  }

  .contact-table strong {
    width: 120px;
  }
}

@media (max-width: 650px) {
  body {
    overflow: hidden;
    overflow-y: auto;
  }

  .navbar {
    height: auto;
    min-height: 75px;
    padding: 12px 4%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    position: static;
    order: 3;
    width: 100%;
    transform: none;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 0;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  #presentation {
    height: calc(100dvh - 150px);
    min-height: 0;
  }

  .screen {
    padding: 25px 6%;
  }

  .home-screen,
  .home-screen.active {
    flex-direction: column;
    justify-content: flex-start;
    gap: 25px;
    padding-top: 25px;
  }

  .hero-visual {
    width: 190px;
    max-width: 55%;
    flex-shrink: 0;
  }

  .profile-frame {
    width: 100%;
  }

  .floating-card {
    right: -15%;
    bottom: 5%;
    padding: 9px 12px;
    font-size: 0.75rem;
  }

  .hero-copy {
    width: 100%;
    max-width: 500px;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .education-intro {
    font-size: 0.9rem;
  }

  .contact-table {
    width: 100%;
    margin: 22px auto 0;
    text-align: left;
  }

  .contact-table p {
    font-size: 0.8rem;
    gap: 8px;
  }

  .contact-table strong {
    width: 115px;
    font-size: 0.7rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  footer.page-controls {
    height: 60px;
    padding: 0 5%;
    gap: 12px;
  }

  .page-controls button {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.68rem;
  }

  .contact-table strong {
    width: 105px;
  }

  .hero-copy h1 {
    font-size: 1.7rem;
  }
}

.screen.home-screen {
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-y: hidden;
}

#about .about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro cards";
  align-items: center;
  gap: 40px;
  width: 100%;
}

#about .about-intro {
  grid-area: intro;
  min-width: 0;
  padding: 15px;
}

#about .about-grid {
  grid-area: cards;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-width: 0;
}

@media (max-width: 800px) {
  #about .about-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "cards";
  }
}

/* ABOUT ME — 3 COLUMNS × 2 ROWS */
#about .content-wrap {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
}

#about .about-intro p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
}

#about .about-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    margin-top: -30px;
    row-gap: 0.5px;
    width: 102%;
    height: calc(100svh - 120px);
    min-height: 0;
}

#about .objectives-card ul,
#about .skills-card ul,
#about .values-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 15px;
    row-gap: 8px;
    padding-left: 20px;
    margin: 0;
}


#about .about-grid {
    display: contents;
}

/* Six equal-sized boxes */
#about .about-intro,
#about .about-card {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    padding: 30px;
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 18px;
    background: rgba(17, 19, 38, 0.72);
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#about .about-intro h3,
#about .about-card h3 {
    color: #b76aff;
    font-size: 1.20rem;
    text-align: center;
    margin-bottom: 14px;
}

#about .about-intro p,
#about .about-card li {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

#about .about-intro p {
    margin: 0;
}

#about .about-card ul {
    padding-left: 20px;
    margin: 0;
}

#about .about-card li {
    margin-bottom: 5px;
}



/* Smaller screens */
@media (max-width: 900px) {
    #about .about-layout {
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    #about .about-intro,
    #about .about-card {
        min-height: 200px;
    }
}

@media (max-width: 550px) {
    #about .about-layout {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE - MOBILE */

@media (max-width: 500px) {
    #about .about-intro {
        padding: 22px;
    }

    #about .about-intro h2 {
        font-size: 1.8rem;
    }

    #about .about-card h3 {
        font-size: 1.1rem;
    }

    #about .about-card p {
        font-size: 0.88rem;
    }
}

/* ==========================================
   ANIMATED PURPLE CIRCUIT BACKGROUND
========================================== */

body {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;

    background: #080512;
}

/* Background image layer */

body::before {
    content: "";
    position: fixed;
    inset: -3%;

    z-index: -2;
    pointer-events: none;

    background:
        linear-gradient(
            rgba(8, 5, 20, 0.25),
            rgba(8, 5, 20, 0.35)
        ),
        url("image/purple-circuit-bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transform: translate3d(
        var(--mouse-x, 0px),
        var(--mouse-y, 0px),
        0
    ) scale(1.06);

    animation: circuitFloat 22s ease-in-out infinite alternate;

    transition: filter 0.4s ease;
}

/* Purple ambient glow */

body::after {
    content: "";
    position: fixed;
    inset: 0;

    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(147, 51, 234, 0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(124, 58, 237, 0.12),
            transparent 40%
        );

    animation: purpleGlow 12s ease-in-out infinite alternate;
}



@keyframes circuitFloat {
    0% {
        background-position: 48% 48%;
    }

    100% {
        background-position: 52% 52%;
    }
}

/* Ambient glow animation */

@keyframes purpleGlow {
    0% {
        opacity: 0.55;
    }

    100% {
        opacity: 1;
    }
}

/*background */

.navbar,
#presentation,
footer.page-controls {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
        transition: none;
    }
}
/* ANIMATED PURPLE BACKGROUND */

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  background: #080512;
}

body::before {
  content: "";
  position: fixed;
  inset: -3%;
  z-index: -2;
  pointer-events: none;

  background:
    linear-gradient(rgba(8, 5, 20, 0.25), rgba(8, 5, 20, 0.35)),
    url("image/Background.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: circuitFloat 22s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.10), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.12), transparent 40%);

  animation: purpleGlow 12s ease-in-out infinite alternate;
}

@keyframes circuitFloat {
  from { background-position: 48% 48%; }
  to { background-position: 52% 52%; }
}

@keyframes purpleGlow {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
    transition: none;
  }
}

/* ================================
   EDUCATION PAGE
================================ */

#education {
    overflow: hidden;
}

#education .content-wrap {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

#education .education-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px;
    width: 100%;
    margin: 30px auto 0;
}

/* Individual education entry */
#education .education-card {
    min-width: 0px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Circular image frame */
#education .education-card img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid #a855f7;
    padding: 4px;
    object-fit: contain;
    background: white;
    margin-bottom: 30px;
}

/* Text information */
#education .education-info {
    width: 100%;
    min-width: 0;
}

/* Education level */
#education .education-info h3 {
    color: white;
    font-size: 1.50rem;
    text-align: center;
    margin-bottom: 25px;
}

/* School name and year */
#education .education-info p {
    font-size: 1.0rem;
    line-height: 2;
    text-align: left;
    margin-bottom: 7px;
    overflow-wrap: anywhere;
}

#education .school-name {
    color: #c084fc;
    font-weight: 700;
}

#education .school-year {
    color: white;
    font-weight: 700;
    margin-top: 8px;
}

#education .present-label {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(147, 51, 234, 0.2);
    color: #d8b4fe;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Responsive layout */
@media (max-width: 1000px) {
    #education .education-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #education .education-grid {
        grid-template-columns: 1fr;
    }
}

footer.page-controls,
.page-controls button,
.page-indicator {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  text-decoration: none !important;
}
@media (max-width: 900px) {
    #about .about-layout {
        height: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    #about .about-intro,
    #about .about-card {
        min-height: 200px;
    }
}

@media (max-width: 550px) {
    #about .about-layout {
        grid-template-columns: 1fr;
    }
}

