@import url("https://fonts.googleapis.com/css2?family=Aboreto&family=Anton&family=Bebas+Neue&family=Doto:wght@100..900&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap");
/* FONT STYLES */

:root {
  --menu-font: "Doto", sans-serif;
  --main-heading: "Anton", sans-serif;
  --side-heading: "Bebas Neue", sans-serif;
  --side-side-heading: "Aboreto", sans-serif;
  --content-font: "Urbanist", sans-serif;
}

/* ---root styles--- */
:root {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  color: rgb(227, 229, 229);
  line-height: 1.9rem;
}
:root::selection {
  background: rgb(0, 116, 99);
}

/* P TAG STYLING FOR ALL SCREEN SIZES */
p {
  word-wrap: break-word; /* Breaks long words */
  word-break: break-word; /* Ensures long words don't overflow */
  white-space: normal; /* Allows wrapping */
  /* overflow-wrap: anywhere; Forces break if necessary */
  line-height: 1.6; /* Improves readability */
  font-size: 1rem; /* Default text size */
  text-align: justify;
}

/* Body style for whole portifolio */
html,
body {
  font-family: var(--content-font);
  background: linear-gradient(-45deg, #0a0a0a, #1c1c1c, #2e2b24, #3e2f16);
  margin: 0;
  padding: 0;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: 300% 300%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
  animation: gradientAnimation 15s ease-in-out infinite;
}
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Note book pattern above the body for whole portifolio  */
.notebook-pattern {
  background: repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 40px
    );
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-size: 40px 40px;
  min-height: 100vh;
}

/* LOADER ANIMATION */
/* LOADER WRAPPER */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #212121; /* or any background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's above everything */
}

/* LOADER */
.loader {
  height: 60px;
  aspect-ratio: 1;
  position: relative;
  border: 3px solid #ffffff00;
}
.loader:before {
  content: "";
  position: absolute;
  inset: auto 35% 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(1, 221, 188);
  transition: all ease-in-out;
  animation: l6-0 0.5s cubic-bezier(0, 800, 1, 800) infinite;
}
.loader:after {
  content: "";
  position: absolute;
  inset: 0;
  outline: 3px solid #ffffff;
  animation: l6-1 0.5s linear infinite;
}
@keyframes l6-0 {
  0%,
  2% {
    bottom: 0%;
  }
  98%,
  to {
    bottom: 0.1%;
  }
}
@keyframes l6-1 {
  0%,
  30% {
    rotate: 0deg;
  }
  70%,
  to {
    rotate: 90deg;
  }
}

/* END OF LOADER  */

/* -----Sticky Header-START----- */
header {
  width: 50%;
  position: sticky;
  top: 1rem;
  display: flex;
  justify-content: center;
  z-index: 100;
}

#header-top {
  width: 50%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.8rem 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 2rem;
  background: linear-gradient(
    -125deg,
    rgba(225, 255, 252, 0.405) 0%,
    rgba(74, 66, 0, 0.411) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(227, 229, 229, 0.285);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#about,
#projects,
#connect,
#resume,
#certificates {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease;
  background: none;
  border: none;
  padding: 0;
}

#about:hover,
#projects:hover,
#connect:hover,
#resume:hover,
#certificates:hover {
  transform: translateY(-4px);
}

.logo {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.2);
  transition: filter 0.3s ease;
}

#about:hover .logo,
#projects:hover .logo,
#connect:hover .logo,
#resume:hover .logo,
#certificates:hover .logo {
  filter: grayscale(0%) brightness(1.4);
}

/* -----HEADER END----- */

/* START OF ABOUT SECTION */
#section-about {
  margin: 1rem;
  width: 75%;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.411);
  border-radius: 0.6rem;
  position: relative;
}

.profile-photo {
  margin: 1rem;
  text-align: center;
  border-radius: 0.6rem;
  position: relative;
}
.profile-photo {
  position: relative;
}

#profilephoto {
  width: 15rem;
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(227, 229, 229, 0.285);
  transition: all 0.3s ease-in-out;
}
#profilephoto:hover {
  border: 1px solid rgba(52, 246, 8, 0.422);
}

.about-description {
  margin: 1rem;
}

.status {
  display: flex;
  align-items: center;
  gap: 5px;
}
.open-to-work {
  width: fit-content;
  padding: 0 0.5rem;
  color: rgb(239, 241, 239);
  border-radius: 1rem;
  border: 1px solid rgba(52, 246, 8, 0.7);
  background-color: rgba(52, 246, 8, 0.3);
  margin: 0.5rem;
}

/* Outer blinking ring */
.green-dot {
  position: relative;
  width: 20px;
  height: 20px;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: rgba(52, 246, 8, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: blink 1s infinite;
  z-index: 1;
}

/* Inner static dot */
.green-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: rgb(52, 246, 8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Blink animation */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* END OF ABOUT SECTION  */

#section-projects {
  width: 75%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  margin: 1rem;
  padding: 1rem;
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.411);
  border-radius: 1rem;
}

h1 {
  font-family: var(--menu-font);
}

/* PROJECT-1 */
#project-1,
#project-2 {
  margin: 1rem;
}

h2 {
  font-family: var(--side-side-heading);
}
h4 {
  font-family: var(--side-side-heading);
}
#project-1 #moviepedia-embeded,
#section-resume #resume-embeded {
  margin-top: 1rem;
  border: none;
  width: 95%;
  min-height: 40rem;
  border-radius: 1rem;
  border: 1px solid rgba(227, 229, 229, 0.285);
}

/* PROJECT-2 */

.flex-outputs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.project2-outputs {
  width: calc(50% - 0.5rem);
  height: auto;
  object-fit: contain;
  max-width: 100%;
  border-radius: 5px;
  border: 1px solid rgba(227, 229, 229, 0.285);
  box-shadow: -0.5rem -0.5rem 2px rgba(35, 35, 35, 0.3);
  transition: all 0.3s ease-in-out;
}

.project2-outputs:hover {
  border: 1px solid rgba(166, 255, 255, 0.9);
  transform: translate(2px, 2px);
  box-shadow: -0.6rem -0.6rem 0 rgba(0, 0, 0, 0.8);
}
/* -----PROJECT-2 END----- */
/* END OF PROJECT SECTION  */

/* START OF CERTIFICATES SECTION */
#section-certificates {
  width: 75%;
  margin: 1rem;
  padding: 1rem;
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.411);
  border-radius: 1rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.cert-card {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.cert-card:hover {
  background-color: rgba(0, 116, 99, 0.379);
  transform: scale(1.02);
}

/* END OF CERTIFICATES SECTION */

/*START RESUME SECTION  */
#section-resume {
  width: 75%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  margin: 1rem;
  padding: 1rem;
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.411);
  border-radius: 1rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 0 6px;
  font-size: 10px;
  text-decoration: none;
  background: rgba(2, 188, 2, 0.549);
  border: 1px solid rgba(243, 240, 240, 0.5);
  border-radius: 1rem;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

.download-btn:hover {
  background: rgba(3, 131, 3, 0.849);
  border: 1px solid rgba(243, 240, 240, 0.8);
}

.download-icon {
  width: 12px;
  height: 12px;
}

/* TEXT HIGHLIGHT  */
.highlight {
  background: rgb(0, 116, 99);
  padding: 2px 2px;
  border-radius: 2px;
}
/* RESUME SECTION END */

/* START OF CONNECT SECTION */
#section-connect {
  width: 75%;
  padding: 2rem;
  text-align: center;
  margin: 1rem;
  padding: 1rem;
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.411);
  border-radius: 1rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  margin: auto;
  gap: 1rem;
}

#contact-form input,
#contact-form textarea {
  color: #0a0a0a;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

#contact-form button {
  padding: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: rgb(239, 241, 239);
  border: 1px solid rgba(52, 246, 8, 0.7);
  background-color: rgba(52, 246, 8, 0.3);
  border-radius: 1rem;
  transition: all 0.3s ease-in-out;
}

#contact-form button:hover {
  background-color: rgba(42, 200, 6, 0.712);
}

#form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}
