/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,
del,dfn,em,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,
b,u,i,center,
dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,
table,caption,tbody,tfoot,thead,tr,th,td,
article,aside,canvas,details,embed,
figure,figcaption,footer,header,hgroup,
menu,nav,output,ruby,section,summary,
time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* Custom Additions */
.proj-figure:hover .hover-desc {
  opacity: 1 !important;
}

.skill-icon {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.5;
  cursor: pointer;
}

.skill-icon:hover {
  opacity: 1;
}

.ai-icon:hover,
.ae-icon:hover {
  transform: scale(1.3);
}

.back-to-top:hover, .go-to-bottom:hover {
  background: #6d28d9 !important;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*----------------------------------------My Style Starts----------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #291C3A;
  --purple: #8121D0;
  --purple-light: #DCCFED;
  --white: #FFFF;
  --accent: #E1EBED;
  --contact: #331C52;
}

.anton-regular {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.figtree-regular {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: 'Figtree', Cambria, Cochin, Georgia, serif;
  background-color: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/*-----------------------------------------Navigation-----------------------------------------------*/
nav {
  background: var(--purple);
  padding: 0.5rem 2.5rem;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

nav a {
  font-size: 1rem;
  font-family: 'Figtree', sans-serif, Cambria, Georgia;
  font-weight: 400;
  font-style: normal;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.7;
}

nav button {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
}

nav ul {
  display: none;
  flex-direction: column;
  background: #8121D0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  list-style: none;
}

nav ul.open {
  display: flex;
}

nav ul a {
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

nav ul a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Fix */
nav button.open svg {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}


/*-----------------------------------------Layout-----------------------------------------------------*/
/* SECTION 1 — HERO */
#home {
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 7rem;
  background-size: 50px 50px;
}

#home h1 {
  font-family: 'Anton', sans-serif, Cambria, Georgia;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--white);
  animation: up 0.8s ease both;
}

#home h1 .b {
  color: var(--accent);
}

#home h1 .n {
  color: #8121D0;
}

/* SECTION 2 — ABOUT */
#aboutme {
  background: var(--accent);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 4rem;
  gap: 3rem;
}

#aboutme h2 {
  font-family: 'Anton', Cambria, Cochin, Georgia, Times;
  font-size: 1.4rem;
  font-weight: 700;
}

#aboutme figure {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  width: 100%;
  max-width: 700px;
  margin: 0;
}

.profile-box {
  width: 350px;
  height: 350px;
  border-radius: 12px;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #000;
  text-align: center;
  line-height: 1.6;
}

#aboutme figcaption {
  display: flex;
  flex-direction:
    column;
  gap: 1rem;
}

#aboutme figcaption h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

#aboutme ul {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
}

#aboutme li {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: transform 0.2s;
}

#aboutme li:hover {
  transform: scale(1.12);
}

/* SECTION 3 — PROJECTS */
#projects {
  background: #DCCFED;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 4rem;
  gap: 3rem;
}

#projects h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

#projects ul {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

#projects li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

#projects figure {
  width: 130px;
  height: 110px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #000;
  margin: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

#projects li:hover figure {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.18);
}

#projects span {
  font-size: 0.82rem;
  font-weight: 700;
}

/* SECTION 4 — CONTACT */
#contact {
  background: var(--lilac);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 7rem;
  gap: 4rem;
}

#contact h2 {
  font-family: 'figtree',Cambria, Cochin,sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
}
#contact h2 span {
  color: var(--purple);
}

#contact aside {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 340px; 
  background:none;
}
form {
  display: flex;
  flex-direction:
    column;
  gap: 0.85rem;
}

form input,
form textarea {
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  color: #000;
  outline: none;
  transition: box-shadow 0.2s;
}

form input:focus,
form textarea:focus {
  box-shadow: 0 0 0 2px var(--purple);
}

form input::placeholder,
form textarea::placeholder {
  color: #aaa;
}

form textarea {
  resize: none;
  height: 100px;
}

form button {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

form button:hover {
  background: #6d28d9;
}

/* social links reuse nav tag */
#contact aside nav {
  display: flex;
  gap: 0.75rem;
  background: none;
  position: static;
  height: auto;
  padding: 0;
  justify-content: flex-start;
}

#contact aside nav a {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: background 0.2s, transform 0.2s;
}

#projects h2,
#aboutme h3 {
  font-family: 'Anton', sans-serif;
}

.project-item span {
  color: #000;
  font-family: 'Figtree', sans-serif;
}

#contact aside nav a:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  opacity: 1;
}

/*--------------------------------------------Illustrations----------------------------------------------*/
.blob {
  width: 320px;
  height: 320px;
  border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
  background: linear-gradient(135deg, #fff 60%, #f3e8ff);
  border: 3px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  color: #3b0764;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  flex-shrink: 0;
  overflow: hidden;
  animation: morph 8s ease-in-out infinite, glow 3s ease-in-out infinite;
}

.blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*----------------------------------------------Animations--------------------------------------------------*/
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes morph {

  0%,
  100% {
    border-radius: 62% 38% 46% 54%/60% 44% 56% 40%
  }

  25% {
    border-radius: 50% 50% 34% 66%/56% 68% 32% 44%
  }

  50% {
    border-radius: 70% 30% 56% 44%/40% 56% 44% 60%
  }

  75% {
    border-radius: 40% 60% 70% 30%/60% 30% 70% 40%
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.15)
  }

  50% {
    box-shadow: 0 0 55px rgba(239, 68, 68, 0.3)
  }
}

@keyframes popup {
  from {
    transform: scale(0.85);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

/*----------------------------------------------Media Queries------------------------------------------------*/
@media (max-width: 600px) {
  nav>a {
    display: none;
  }

  nav button {
    display: block;
  }
}

@media (max-width: 700px) {
  #home {
    flex-direction: column;
    padding: 3rem 2rem;
    text-align: center;
    gap: 2.5rem;
  }

  #aboutme {
    padding: 3rem 1.5rem;
  }

  #aboutme figure {
    flex-direction: column;
    align-items: center;
  }

  #projects {
    padding: 3rem 1.5rem;
  }

  #contact {
    flex-direction: column;
    padding: 3rem 2rem;
  }
  .contact-header{
    text-align: center;
  }
  .social-icons{
    justify-content: center;
  }

  #contact aside {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  main {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 3rem;
    text-align: center;
  }
}

/* EXTRACTED INLINE STYLES */

.header-logo {
  height: clamp(50px, 8vw, 80px);
  margin-right: auto;
}

#aboutme {
  color: #000;
}

#aboutme h2 {
  font-family: 'Anton', sans-serif;
  color: #000;
  text-align: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-box {
  width: 350px;
  height: 350px;
  flex-shrink: 0;
}

.profile-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: #000;
  text-align: center;
}

.skills-caption {
  text-align: center;
  margin-top: 1rem;
}

.skills-caption h3 {
  color: #000;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.skills-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
}

.skill-icon {
  width: 48px;
  height: 48px;
}

#projects h2 {
  color: #000;
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Anton', sans-serif;
}

.category-block {
  margin-bottom: 5rem;
}

.category-block.highlight {
  background: #fdfdfd;
  padding: 3rem 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #000;
}

.category-block h3 {
  font-family: 'Anton', sans-serif;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #000;
}

.category-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.category-card {
  text-decoration: none;
  color: #000;
  text-align: center;
  font-family: 'Figtree', sans-serif;
}

.category-figure {
  width: 300px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.category-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SPLIT LAYOUT */
.split-layout {
  display: flex;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.split-left {
  flex: 0 0 200px;
  min-width: 200px;
  max-width: 250px;
  position: sticky;
  top: 100px;
  font-family: 'Figtree', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  color: #888;
  font-size: 1.1rem;
  border-left: 2px solid #eaeaea;
  padding-left: 1.5rem;
  overflow: visible;
  max-height: none;
  animation: none;
  padding: 0;
  padding-bottom: 1 rem;
  overflow-x: auto;
}


.split-left span {
  transition: color 0.2s;
  cursor: pointer;
  line-height: 1.4;
}

.split-left span.active {
  color: #000;
  font-weight: 700;
}

.split-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.split-right video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #000;
  display: block;
}

/* SOCIAL & FOOTER */
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  transition: opacity 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-linkedin {
  color: #0A66C2;
}

.icons-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.main-footer {
  text-align: center;
  padding: 2rem 1rem 1rem;
  font-family: 'Figtree', sans-serif;
  color: #555;
  font-size: 0.85rem;
  font-weight: 500;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--purple);
  padding: 10px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  text-align: center;
  color: #fff;
  display: block;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  font-family: 'Space Mono', monospace;
  line-height: 24px;
}

.go-to-bottom {
  position: fixed;
  bottom: 74px;
  right: 20px;
  background: var(--purple);
  padding: 10px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  text-align: center;
  color: #fff;
  display: block;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  font-family: 'Space Mono', monospace;
  line-height: 24px;
}