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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #1b1b2f;
  color: #fff;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

button {
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
}

:root {
  --green:       #0cbc8b;
  --green-dim:   rgba(12, 188, 139, 0.15);
  --green-glow:  rgba(12, 188, 139, 0.30);
  --bg-dark:     #1b1b2f;
  --bg-mid:      #16213e;
  --bg-card:     #1e2a45;
  --txt:         #cdd9f5;
  --txt-dim:     #8892b0;
  --white:       #ffffff;
  --nav-h:       70px;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 3px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(27, 27, 47, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 188, 139, 0.1);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
nav {
  max-width: 1160px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}
.logo span {
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 2.4rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--txt);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  font-size: 1.6rem;
  color: var(--white);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  right: -100%;
  width: 260px;
  height: calc(100% - var(--nav-h));
  background: var(--bg-mid);
  border-left: 1px solid rgba(12, 188, 139, 0.15);
  flex-direction: column;
  padding: 2.5rem 2rem;
  gap: 1.8rem;
  z-index: 999;
  transition: right 0.38s ease;
}

.mobile-menu.open {
  right: 0;
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--txt);
  transition: color 0.25s;
}

.mobile-menu a:hover {
  color: var(--green);
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 2rem 4rem;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.9rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--green);
  border-radius: 0.4rem;
  letter-spacing: 0.03em;
  transition: background 0.3s, color 0.3s, transform 0.25s, box-shadow 0.3s;
}

.btn:hover {
  background: transparent;
  color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--green-glow);
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--green-dim);
  color: var(--green);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.25s;
}

.social-btn:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-4px);
}

.hex-container {
  position: relative;
  width: 320px;
  height: 360px;
  flex-shrink: 0;
}

/* Outer glow pulse ring */
.hex-container::before {
  content: '';
  position: absolute;
  inset: -18px;
  background: var(--green);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.18;
  animation: hexPulse 4s ease-in-out infinite;
}

/* Outer border ring */
.hex-container::after {
  content: '';
  position: absolute;
  inset: -6px;
  background: var(--green);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.5;
}

@keyframes hexPulse {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50%       { opacity: 0.28; transform: scale(1.04); }
}

.hex-inner {
  position: absolute;
  inset: 0;
  background: var(--green);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hex-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hex-emoji {
  font-size: 8rem;
  line-height: 1;
  padding-bottom: 0.5rem;
  user-select: none;
}

.hex-right {
  flex-shrink: 0;
}

.hex-about-wrap {
  flex-shrink: 0;
  position: relative;
  width: 320px;
  height: 360px;
}

/* Green border shape */
.hex-stroke {
  position: absolute;
  inset: 0;
  background: var(--green);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 0;
}

/* Inner cutout (creates border effect) */
.hex-stroke-inner {
  position: absolute;
  inset: 3px;
  background: var(--bg-mid);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hex-stroke-inner img,
.hex-stroke-inner .hex-emoji {
  position: relative;
  z-index: 2;
}

#home {
  background: var(--bg-dark);
}

.home-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}

.home-content {
  flex: 1;
}

.home-greeting {
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.home-greeting em {
  font-style: normal;
  color: var(--green);
}

.home-name {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.home-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.1rem;
  min-height: 2rem;
}

.home-desc {
  font-size: 0.93rem;
  color: var(--txt-dim);
  line-height: 1.8;
  max-width: 430px;
  margin-bottom: 2rem;
}

.home-socials {
  display: flex;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Typing cursor */
.typed-cursor {
  color: var(--green);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

#about {
  background: var(--bg-mid);
}

.about-flex {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: 100%;
}

.about-text {
  flex: 1;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.eyebrow em {
  font-style: normal;
  color: var(--green);
}

.section-heading {
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.about-text p {
  font-size: 0.92rem;
  color: var(--txt-dim);
  line-height: 1.85;
  max-width: 480px;
  margin-bottom: 2rem;
}

.white-text {
  color: #fff;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid rgba(12, 188, 139, 0.15);
  border-radius: 0.6rem;
  padding: 1rem 0.8rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.stat-box:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  display: block;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--txt-dim);
  margin-top: 0.2rem;
}

/* EDUCATION SECTION */

#education{
  padding:120px 0;
}

.education-timeline{
  margin-top:60px;
  position:relative;
}

.education-card{
  display:flex;
  align-items:flex-start;
  gap:30px;
}

.edu-line{
  position:relative;
  width:40px;
}

.edu-line::before{
  content:"";
  position:absolute;
  left:18px;
  top:0;
  width:3px;
  height:120px;
  background:#00f7ff;
}

.edu-dot{
  position:absolute;
  left:10px;
  top:0;
  width:18px;
  height:18px;
  background:#00f7ff;
  border-radius:50%;
}

.edu-box{
  display:flex;
  gap:25px;
  background:#0b0b0b;
  padding:30px;
  border-radius:12px;
  transition:0.3s;
  max-width:700px;
}

.edu-box:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

.edu-logo img{
  width:70px;
  background:white;
  padding:8px;
  border-radius:10px;
}

.edu-text h3{
  font-size:22px;
  margin-bottom:5px;
}

.edu-text h4{
  font-weight:500;
  margin-bottom:5px;
}

.edu-date{
  color:#00f7ff;
  font-size:14px;
  display:block;
  margin-bottom:10px;
}

.edu-text p{
  font-size:14px;
  opacity:0.8;
}

#services {
  background: var(--bg-dark);
}

.services-flex {
  display: flex;
  align-items: flex-start;
  gap: 5rem;
  width: 100%;
}

.services-left {
  flex: 0 0 300px;
}

.services-left .body-text {
  font-size: 0.88rem;
  color: var(--txt-dim);
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.skills-list {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3.5rem;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.skill-row:last-child {
  border-bottom: none;
}

.sk-num {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 700;
  min-width: 28px;
}

.sk-name {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--green);
}

#projects {
  background: var(--bg-mid);
  min-height: auto;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.projects-head {
  text-align: center;
  margin-bottom: 3rem;
}

.projects-head .eyebrow {
  display: block;
  text-align: center;
}

.projects-head .section-heading {
  text-align: center;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.proj-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.proj-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.45s ease;
}

.proj-card:hover .proj-thumb {
  transform: scale(1.08);
}

/* Project card background gradients */
.p1 { background: linear-gradient(140deg, #0d1520, #152232); }
.p2 { background: linear-gradient(140deg, #0a1f12, #143820); }
.p3 { background: linear-gradient(140deg, #130d28, #221545); }
.p4 { background: linear-gradient(140deg, #1c1406, #2e2008); }
.p5 { background: linear-gradient(140deg, #0b1e30, #0f3254); }
.p6 { background: linear-gradient(140deg, #1a0d2e, #2d1a4a); }

.proj-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 188, 139, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.35s;
}

.proj-card:hover .proj-overlay {
  opacity: 1;
}

.proj-type {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.proj-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.proj-link {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.proj-link:hover {
  opacity: 0.75;
}

#contact {
  background: var(--bg-dark);
}

.contact-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--txt-dim);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.c-icon {
  width: 40px;
  height: 40px;
  background: var(--green-dim);
  border: 1px solid rgba(12, 188, 139, 0.3);
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
}

.c-detail-text span {
  display: block;
}

.c-lbl {
  font-size: 0.72rem;
  color: var(--txt-dim);
}

.c-val {
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 500;
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.78rem;
  color: var(--txt-dim);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  background: var(--bg-mid);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.4rem;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--txt-dim);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.field textarea {
  height: 130px;
}

.submit-btn {
  padding: 0.85rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0.4rem;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
}

.submit-btn:hover {
  background: #0aaa7d;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--green-glow);
}

footer {
  background: var(--bg-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-logo span {
  color: var(--green);
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--txt-dim);
  margin-bottom: 1rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--txt-dim);
}


.scrollup {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--green);
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.3s;
  z-index: 998;
}

.scrollup.show {
  opacity: 1;
  pointer-events: all;
}

.scrollup:hover {
  transform: translateY(-5px);
}

.anim {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim.from-left   { transform: translateX(-45px); }
.anim.from-right  { transform: translateX(45px); }
.anim.from-bottom { transform: translateY(40px); }

.anim.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger animation for children */
.stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }


@media (max-width: 920px) {

  .nav-links      { display: none; }
  .nav-hamburger  { display: block; }

  /* Home */
  .home-flex      { flex-direction: column-reverse; text-align: center; }
  .home-desc      { margin: 0 auto 2rem; }
  .home-socials   { justify-content: center; }

  /* About */
  .about-flex     { flex-direction: column; text-align: center; gap: 2.5rem; }
  .about-text p   { margin: 0 auto 1.5rem; }
  .about-stats    { max-width: 340px; margin: 0 auto 1.5rem; }

  /* Services */
  .services-flex  { flex-direction: column; gap: 2.5rem; }
  .services-left  { flex: unset; }
  .skills-list    { grid-template-columns: 1fr 1fr; }

  /* Projects */
  .proj-grid      { grid-template-columns: 1fr 1fr; }

  /* Contact */
  .contact-flex   { grid-template-columns: 1fr; gap: 3rem; }

  /* Hexagon */
  .hex-container,
  .hex-about-wrap { width: 250px; height: 280px; }
}


@media (max-width: 600px) {
  section         { padding: calc(var(--nav-h) + 2rem) 1.2rem 3rem; }
  .proj-grid      { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .skills-list    { grid-template-columns: 1fr; }
  .about-stats    { grid-template-columns: 1fr 1fr; }
}
