@import url('https://fonts.googleapis.com/css2?family=Alan+Sans:wght@300..900&display=swap');

/* ---------- GLOBAL ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}


* {
  margin: 0;
  padding: 0;
}

html,
body {
  scroll-behavior: smooth;
}

section {
  /* min-height: 100vh; */
  padding-top: 100px;
}

@font-face {
  font-family: 'MyFont';
  src: url('../Font/osaka_sans_serif/osaka-re.ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Alan Sans", sans-serif;
  background: #111;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.5;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ---------- Project & .certificate ---------- */

.projects-section {
  padding-top: 0px;
}

.projects,
.certificates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.project,
.certificate {
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project img,
.certificate img {
  width: 400px;
  transition: transform 0.5s ease;
  border-radius: 12px;
}

.project img:hover,
.certificate img:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
}

.heading {
  font-family: 'MyFont';
  font-size: 4rem;
  text-align: center;
}

.project-content,
.certificate-content {
  width: 400px;
}

.project-content p,
.certificate-content p {
  font-size: small;
  font-weight: 100;
  margin: 0;
}

.project-content .skills,
.certificate-content .skills {
  font-weight: 400;
}

.project-content h3,
.certificate-content h3 {
  margin: 5px 0px;
  font-weight: 500;
}

/* ---------- BUTTON's ---------- */

.project-link {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn {
  margin-top: 20px;
  display: inline-flex;
  gap: 8px;
  padding: 7px 0px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
  width: 50%;
}

.btn:hover {
  transform: scale(1.05);
}

.github-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61-.546-1.387-1.333-1.757-1.333-1.757-1.087-.744.084-.729.084-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.807 1.304 3.492.997.107-.776.418-1.305.762-1.605-2.665-.305-5.466-1.334-5.466-5.93 0-1.31.47-2.38 1.236-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23a11.52 11.52 0 0 1 3-.405c1.02.005 2.045.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.62-5.475 5.92.43.37.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>') no-repeat center/contain;
}

.live-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23212121'><path d='M6.343 4.939c.39.39.39 1.023 0 1.414-3.125 3.125-3.125 8.192 0 11.317.39.39.39 1.023 0 1.414-.39.39-1.023.39-1.414 0C1.022 15.178 1.022 8.845 4.929 4.939c.39-.39 1.023-.39 1.414 0zm12.732 0c3.906 3.906 3.906 10.239 0 14.146-.39.39-1.023.39-1.414 0-.39-.39-.39-1.023 0-1.414 3.125-3.125 3.125-8.192 0-11.317-.39-.39-.39-1.023 0-1.414.39-.39 1.023-.39 1.414 0zM9.309 7.812c.39.39.39 1.023 0 1.414-1.531 1.531-1.531 4.013 0 5.544.39.39.39 1.023 0 1.414-.39.39-1.023.39-1.414 0C5.583 13.873 5.583 10.124 7.895 7.812c.39-.39 1.023-.39 1.414 0zm6.959 0c2.312 2.312 2.312 6.06 0 8.372-.39.39-1.023.39-1.414 0-.39-.39-.39-1.023 0-1.414 1.531-1.531 1.531-4.013 0-5.544-.39-.39-.39-1.023 0-1.414.39-.39 1.023-.39 1.414 0zM12.081 10.581a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z'/></svg>") no-repeat center/contain;

}

/* ---------- RESPONSIVE DESIGN ---------- */

@media (max-width: 1200px) {

  .projects,
  .certificates {
    gap: 20px;
    padding: 15px;
  }

  .project img,
  .certificate img {
    width: 350px;
  }

  .project-content,
  .certificate-content {
    width: 350px;
  }
}

@media (max-width: 992px) {

  .projects,
  .certificates {
    flex-direction: column;
    align-items: center;
  }

  .project,
  .certificate {
    width: 90%;
    max-width: 450px;
  }

  .project img,
  .certificate img {
    width: 100%;
  }

  .project-content,
  .certificate-content {
    width: 100%;
  }

  .project-link {
    flex-direction: column;
    gap: 8px;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .heading {
    font-size: 3rem;
    margin-top: 30px;
  }

  .project img,
  .certificate img {
    width: 100%;
    border-radius: 10px;
  }

  .projects,
  .certificates {
    gap: 25px;
  }

  .project-content p,
  .certificate-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .heading {
    font-size: 2.3rem;
  }

  .project img,
  .certificate img {
    width: 100%;
  }

  .project-content,
  .certificate-content {
    width: 100%;
  }

  .project-link {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 8px 0;
  }
}

@media (max-width: 400px) {
  .heading {
    font-size: 2rem;
  }

  .project img,
  .certificate img {
    width: 100%;
  }

  .project-content p,
  .certificate-content p {
    font-size: 0.8rem;
  }

  .projects,
  .certificates {
    gap: 20px;
  }
}



/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Left */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Alan Sans", sans-serif;

}

.nav-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #fff;
}

.nav-name {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
}

/* Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  font-family: 'MyFont';
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: white;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: fixed;
    /* fixed to viewport */
    top: 60px;
    /* below navbar */
    left: 0;
    width: 100vw;
    /* full viewport width */
    background: rgba(0, 0, 0, 0.7);
    /* same as navbar */
    /* background: transparent; */
    backdrop-filter: blur(5px);
    display: none;
    padding: 20px 0;
    text-align: center;
    gap: 20px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.4s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .menu-toggle {
    display: flex;
    cursor: pointer;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* CONTACT */

.contact-section {
  max-width: 1100px;
  margin: 0px auto;
  display: flex;
}

/* Panels */
.panel {
  width: 50%;
  padding: 20px;
}

/* Left column */
.left h2 {
  font-size: 28px;
  margin-bottom: 5px;
  font-weight: 500;
}

.left p.lead {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85)
}

.show-btn {
  display: inline-flex;
  padding: 7px 7px;
  border-radius: 8px;
  background: #fff;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: center
}

.contact-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px
}

.contact-item a {
  color: white;
  text-decoration: none;
  font-weight: 500
}

.contact-item .meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px
}

.cta-row {
  margin-top: 22px;
}

/* Right column (form) */
form {
  display: flex;
  flex-direction: column;
  gap: 12px
}

label {
  font-size: 13px;
  font-weight: 600
}

input[type=text],
input[type=email] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--input-fg);
  font-size: 15px;
  resize: vertical;
  border: 1px solid white;
  font-family: "Alan Sans", sans-serif;
}

textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--input-fg);
  font-size: 15px;
  resize: vertical;
  border: 1px solid white;
  font-family: "Alan Sans", sans-serif;
  height: 165px;
}

.row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.col {
  width: 50%;
}

.submit-wrap {
  display: flex;
  width: 50%
}

.submit-wrap .submit-btn {
  border: none;
  font-size: 15px;
  font-weight: 700;
  padding: 3px 0px;
  background: white;
  cursor: pointer;
}

/* ✅ Responsive Design */
@media screen and (max-width: 900px) {
  .contact-section {
    flex-direction: column;
    gap: 30px;
    padding: 15px;
  }

  .panel {
    width: 100%;
  }

  .submit-wrap {
    justify-content: center;
  }

  .submit {
    width: 100%;
  }

  .left h2 {
    font-size: 24px;
  }
}



/* Home Section */




.capsule {
  z-index: 2;
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 70vh;
  background-color: #fff;
  border-top-right-radius: 500px;
  border-bottom-right-radius: 500px;
  /* half capsule shape */
  overflow: hidden;
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  margin-top: px;
}

/* Canvas grid inside capsule */
.capsule canvas {
  position: absolute;
  /* top: 0; */
  /* left: 0; */
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Photo */
.capsule img {
  position: relative;
  height: 80%;
  width: auto;
  z-index: 2;
  height: 90%;
  border: 2px solid black;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  margin: auto 20px;
  float: left;
  margin-left: auto;
  /* object-fit: cover; */
  transition: transform 0.3s ease;
}

.capsule img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .capsule {
    width: 90%;
    height: 60%;
  }

  .capsule img {
    height: 70%;
  }
}


.typing-container {
  font-size: 3rem;
  font-weight: 500;
  position: relative;
  align-items: center;
  font-family: "Alan Sans", sans-serif;
  z-index: 2;
  color: black;
  margin: 20px 30px;
}

.static-text {
  margin-right: 8px;
  font-family: 'MyFont';
  font-weight: 600;
  font-size: 4rem;
}

.typing-text {
  position: relative;
}

.typing-text::after {
  content: "|";
  position: absolute;
  right: -8px;
  color: white;
  color: black;
  animation: blink 0.7s infinite;
  font-size: 4rem;
  font-weight: 100;
}

.home-bio {
  margin-top: 5vh;
}

.home-bio p {
  font-size: medium;
}

.home-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #FDD33C;
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.home-resume:hover {
  color: #FDD33C;
  text-decoration: underline;
} 

.home-resume svg {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.home-resume:hover svg {
  transform: translateX(4px);
}

@keyframes blink {

  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}

.social-icons {
  display: flex;
  align-items: left;
  gap: 20px;
}

.social-icons a {
  text-decoration: none;
  color: black;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons svg {
  width: 26px;
  height: 26px;
  stroke: black;
}

.social-icons a:hover {
  transform: scale(1.1);
  opacity: 0.7;
}


/* --- Mobile-only styling --- */
@media (max-width: 768px) {

  /* Hide photo only on mobile */
  .capsule img {
    display: none;
  }

  /* Capsule height reduced for better layout */
  .capsule {
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    border-radius: 30px;
    margin: auto;
  }

  /* Text adjustments */
  .typing-container {
    font-size: 1.8rem;
    margin: 10px 0;
  }

  .static-text {
    font-size: 2.2rem;
  }

  .typing-text::after {
    font-size: 2rem;
  }

  .home-bio {
    margin-top: 10vh;
  }

  .home-bio p {
    font-size: 0.95rem;
    margin: 20px 0;
    line-height: 1.4;
  }

  /* Resume link smaller */
  .home-resume {
    font-size: 0.95rem;
    gap: 4px;
  }

  /* Social icons centered in one line */
  .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: left;
  }

  .social-icons svg {
    width: 22px;
    height: 22px;
    stroke: black;
  }
}

/* Skills Section */

.skills-section {
  text-align: center;
  padding: 20px 20px;
}

.skills-container {
  width: 90%;
  max-width: 700px;
  height: 500px;
  margin: 10px auto;
  position: relative;
  overflow: hidden;
}

.skill {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.1s linear;
}

.skill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}

.skill:hover img {
  transform: scale(1.3);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .project-section {
    margin: 0px auto;
  }

  .skills-section {
    margin: 0px auto;
  }

  .skills-container {
    height: 300px;
  }

  .skill {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .skills-section {
    margin: 0px auto;
  }

  .skills-container {
    height: 250px;
  }

  .skill {
    width: 50px;
    height: 50px;
  }
}


.footer {
  background: transparent;
  color: #f1f1f1;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-info {
  flex: 1 1 300px;
}

.footer-name {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

.footer-links,
.footer-social {
  flex: 1 1 200px;
}

.footer-social .social-icons {
  margin-top: 20px;
}

.footer-bottom {
  display: flex;

  /* text-align: center; */
  justify-content: space-between;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    /* align-items: center; */
    /* text-align: center; */
  }

  .footer-links,
  .footer-social {
    flex: unset;
  }

  .footer-info {
    margin-bottom: -140px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

.footer-links {
  margin-top: 20px;
  list-style: none;
  font-family: 'MyFont';
}

.footer-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

.footer-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: white;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

.footer-links li a:hover::after {
  width: 100%;
}

::selection {
    background-color: #ffffff;
    color: #101010;
    -webkit-text-fill-color: #101010;
}