/* -------------------------
   Reset / base
   ------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

:root {
  --bg: #222831;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --accent: #f8f9fa;
  --nav-height: 64px;
  --container-max: 1200px;
  --page-padding: 1rem;
  --radius: 12px;
}

body {
  font-family: "Nunito", sans-serif;
  background-color: var(--bg);
  color: var(--accent);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

/* -------------------------
   Navigation
   ------------------------- */
header nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 1rem;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--accent);
}
#hambg {
  display: none;
}

/* keep nav content nicely constrained */
header .container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav p {
  font-family: "Science Gothic", sans-serif;
  font-size: 0.65rem;
  margin-left: 0.2rem;
  letter-spacing: 4px;
  opacity: 0.95;
}

.navleft a {
  text-decoration: none;
  color: var(--accent);
}

.navleft span {
  font-size: 1.25rem;
  font-weight: 700;
}

.navleft .ph {
  font-size: 1rem;
}

.navright {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.navright a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  padding-bottom: 0.2rem;
  transition: color 250ms cubic-bezier(0.075, 0.82, 0.165, 1), transform 250ms;
}

.navright a:hover {
  color: #b7aab9;
  transform: translateY(-2px);
}

.burger {
  display: none;
}

/* -------------------------
   Layout helpers
   ------------------------- */
.main {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 1rem) var(--page-padding) 4rem; /* leave space for fixed nav */
}

/* -------------------------
   Hero
   ------------------------- */
.hero {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(60vh - 20px);
  margin: calc(var(--nav-height) + 2.25rem) 2rem 1.5rem; /* push below fixed nav */
  padding: 1.5rem;
  border-radius: var(--radius);
  background: transparent;
}

/* left side of hero */
.hero .heroleft {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
}

.hero .heroleft span {
  font-size: 1.125rem;
  color: var(--accent);
  opacity: 0.95;
}

.hero .heroleft h1 {
  font-family: "Science Gothic", sans-serif;
  font-size: 2.6rem;
  line-height: 1.05;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  margin-top: 0.25rem;
}

/* buttons row */
.hero .heroleft .btn {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}
.hero .heroleft .btn a {
  text-decoration: none;
  color: #000;
}
.hero .heroleft .btn a:hover {
  color: #fff;
}

.hero .heroleft button {
  min-width: 7rem;
  height: 2.5rem;
  border: 2px solid rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  background-color: var(--accent);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.075, 0.82, 0.165, 1),
    background-color 200ms;
}

.hero .heroleft button:hover {
  background-color: #3b314c;
  color: #fff;
  transform: scale(1.06);
}

/* right side of hero (image or illustration) */
.hero .heroright {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.hero .heroright img {
  width: clamp(180px, 22vw, 360px);
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: block;
  transition: transform 450ms ease;
}

.hero .heroright img:hover {
  transform: translateY(-8px);
}

/* -------------------------
   Skills
   ------------------------- */
.skills {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  margin: 2rem auto;
  width: min(1100px, calc(100% - 3rem));
}

.skills h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
  width: 100%;
  text-align: center;
}

/* icons / skillset row */
.skills .skillset {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  animation: floatY 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

.skills .skillset img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 350ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.skills .skillset img:hover {
  transform: scale(1.18);
  cursor: pointer;
}

/* -------------------------
   Projects — centered layout
   ------------------------- */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontally center children */
  justify-content: center;
  padding: 1.5rem;
  gap: 1rem;
  margin: 2rem auto;
  width: min(1200px, calc(100% - 3rem));
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.projects h3 {
  font-size: 1.5rem;
  font-weight: 700;
  width: 100%;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}

/* grid of project cards; centered and constrained */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center; /* centers content inside each grid cell */
}
.project-grid a {
  text-decoration: none;
  color: white;
}

/* individual project card styling */
.project {
  width: 100%;
  max-width: 360px;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.project h4 {
  margin-bottom: 0.5rem;
}

/* -------------------------
   Responsive tweaks
   ------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    margin-top: calc(var(--nav-height) + 1rem);
  }

  .navright a {
    font-size: 0.9rem;
  }

  .skills h3,
  .projects h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  header nav p {
    font-size: 0.6rem;
    letter-spacing: 3px;
  }
  .hero .heroleft h1 {
    font-size: 1.6rem;
  }
  .hero .heroright img {
    width: 160px;
    height: 160px;
  }
  .skills .skillset img {
    width: 52px;
    height: 52px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
}
/* -------------------------
   Center Skills (replace existing .skills rules)
   ------------------------- */
.skills {
  font-family: "Science Gothic", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 3rem;
  margin: 5rem auto 6rem; /* centered vertically & horizontally */
  padding: 2rem 3rem;
  width: min(1100px, calc(100% - 3rem)); /* constrain width, keep responsive */
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* heading centered */
.skills h3 {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
  width: 100%;
  text-align: center;
}

/* keep skill icons centered */
.skills .skillset {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  will-change: transform;
  animation: floatY 4s ease-in-out infinite;
}

/* -------------------------
   Projects — centered layout
   (new / replacement rules)
   ------------------------- */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto 6rem;
  padding: 1.5rem;
  width: min(1200px, calc(100% - 3rem));
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* projects heading */
.projects h3 {
  font-size: 1.75rem;
  font-weight: 700;
  width: 100%;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}

/* grid for project cards — centered */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

/* individual project card */
.project {
  width: 100%;
  max-width: 360px;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 350ms cubic-bezier(0.075, 0.82, 0.165, 1);
}
.project:hover {
  cursor: pointer;
  transform: scale(1.1);
}

/* responsive tweak */
@media (max-width: 600px) {
  .skills,
  .projects {
    width: calc(100% - 2rem);
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  .skills .skillset {
    gap: 1.2rem;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* contact section starts here */
/* Contact Section Wrapper */
.contact-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
}

/* Glass Form */
.contact-form {
  width: min(500px, 90%);
  padding: 2rem;
  border-radius: 16px;

  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);

  color: white;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Heading */
.contact-form h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Input group */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
}

input,
textarea {
  padding: 0.9rem;
  border-radius: 8px;
  border: none;
  outline: none;

  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1rem;

  border: 1px solid rgba(255, 255, 255, 0.25);
}

textarea {
  resize: none;
  height: 120px;
}

/* Button */
.contact-btn {
  padding: 1rem;
  background: #f8f9fa;
  color: black;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: 0.3s ease;
}

.contact-btn:hover {
  background: #3b314c;
  color: white;
  transform: scale(1.05);
}

/* Mobile Fix */
@media (max-width: 480px) {
  .contact-form h2 {
    font-size: 1.6rem;
  }
  textarea {
    height: 90px;
  }
}
.msgbtn {
  text-decoration: none;
  color: var(--bg);
}
/* contact section end here */

footer {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  transition: transform 350ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

footer a {
  font-size: 1.9rem;
  text-decoration: none;
  padding: 1.4rem;
  color: var(--accent);
}
footer a i:hover {
  transform: scale(1.18);
  color: lightseagreen;
}
footer a:hover {
  cursor: pointer;
}

footer p {
  font-size: 1rem;
  font-weight: 500;
}
