body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  scroll-behavior: smooth;
  cursor: none;
  overflow-x: hidden;
}

/* Base Cursor Style Start*/
#custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid #c02727;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out, background-color 0.2s, border-color 0.2s;
  opacity: 0;
}

#custom-cursor.dark {
  border-color: #ffffff;
}

/* Navigation Bar */

.nav {
  background: rgb(255, 255, 255);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease-in-out;
}

.nav li {
  margin: 0 1.5rem;
}

.nav a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav a:hover {
  color: #c02727;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background: #000000;
  border-radius: 5px;
  transition: all 0.3s linear;
  transform-origin: 1px;
}

/*Navigation Bar End*/

/* Main Content */

.grid-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: transparent;
  text-align: center;
  position: relative;
  background: rgb(255, 255, 255);
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: 'Bebas Neue', sans-serif;
}

#morild-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Morild Effect */
.morild-blob {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #c02727;
  border-radius: 50%;
  opacity: 0.1;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.5s ease-out;
}

.morild-blob.animate {
  opacity: 0;
  transform: translate(-50%, -50%) scale(4);
  transition: all 1s ease-out;
}

/*main content end*/

/* Top Section */

.top-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.top-box {
  flex: 1 1 0;
  background: linear-gradient(135deg,
      #c02727 0%,
      #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 765px;
  box-sizing: border-box;
}

.greeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  padding: 0 20px;
  box-sizing: border-box;
}

#hi-text {
  font-size: 50px;
  font-style: italic;
  color: #ffffff;
  transition: opacity 0.3s;
  text-align: center;
}

#intro-text {
  font-size: 50px;
  color: #ffffff;
  text-align: center;
}

#buttons {
  display: flex;
  gap: 4rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

#button {
  margin-top: 6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  background-color: transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 30px;
}

#button:hover {
  border-radius: 50px;
  text-decoration: underline;
}


/* Top Section End */

/* About Me Section */

.about-me-section {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #000000;
  text-align: left;
  font-style: italic;
  padding: 40px 0;
  padding-bottom: auto;
}

.about-me-box {
  width: 80%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.about-me-box.reverse {
  flex-direction: row-reverse;
}

.about-me-text {
  height: auto;
  padding: 10px;
  color: #ffffff;
  line-height: 1.5;
  background-color: transparent;
  flex: 1;
}

.about-me-text p {
  font-size: 20px;
  font-weight: 300;
}

.about-me-image img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  /* soft corners */
}

.at-the-intersection {
  width: 100%;
  justify-content: center;
  padding: 40px 0;
}

.education {
  background-color: #ffffff;
  font-size: 1.4rem;
  border-radius: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: auto;
  max-width: 300px;
  transition: transform 0.3s ease;
  margin-bottom: 50px;
  flex-grow: 1;
  padding: 15px;
}

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

.education-images {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0 10px;
}

.education img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}


/* About Me Section End */

/* Footer Section */

footer {
  background-color: rgb(208, 208, 208);
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
  width: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-list {
  padding: 0;
}

.footer-list li {
  display: inline;
  margin: 0 1rem;
  color: rgb(0, 0, 0);
  list-style: none;
}

.footer-list a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.footer-list a:hover {
  color: #c02727;
}

.get-in-touch-and-socials {
  margin-top: 100px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  gap: 30%;
  justify-content: center;
  padding: 0 20px;
}

.contact-info-container {
  display: grid;
  grid-template-columns: auto;
  justify-content: center;
  column-gap: 2rem;
  row-gap: 1rem;
}

.info {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.info img {
  width: 32px;
  height: 32px;
  filter: invert(0%);
  transition: filter 0.3s;
}

.info a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  transition: color 0.2s;

}

.social-media-accounts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.social-media-accounts a img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 8px;
}

/* Footer Section End */

/* Developed by Section */
.developed-by {
  background-color: rgb(208, 208, 208);
  text-align: center;
  padding: 1rem 0;
  margin-top: 50px;
  color: #000000;
  font-size: 16px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ================================================================= */
/* MEDIA QUERIES FOR RESPONSIVENESS */
/* ================================================================= */

/* ----------------------------------------------------------------- */
/* Tablet/iPad Size (max-width: 1024px) - Intermediate Adjustments */
/* ----------------------------------------------------------------- */
@media (max-width: 1024px) {

  /* Navigation */
  .nav li {
    margin: 0 1rem;
  }

  /* Top Section */
  .top-box {
    min-height: 500px;
  }

  #hi-text,
  #intro-text {
    font-size: 40px;
  }

  #button {
    margin-top: 4rem;
    font-size: 24px;
  }

  /* About Me Section */
  .about-me-box {
    width: 90%;
    padding: 10px;
    flex-direction: column;
    text-align: center;
  }

  .about-me-box.reverse {
    flex-direction: column;
  }

  .about-me-image {
    order: -1;
  }

  /* Education */
  .education-images {
    gap: 1rem;
  }

  .education {
    max-width: 45%;
  }

  /* Footer */
  .get-in-touch-and-socials {
    margin-top: 100px;
    gap: 20%;
  }
}

/* ----------------------------------------------------------------- */
/* Mobile Size (iPhone/Android - max-width: 767px) - Aggressive Shrinking */
/* ----------------------------------------------------------------- */
@media (max-width: 767px) {
  #custom-cursor {
    display: none !important;
  }

  body,
  html {
    cursor: auto;
  }

  .nav {
    padding: 0.5rem 0;
    position: relative;
  }

  .nav-container {
    justify-content: space-between;
    padding: 0 20px;
    margin: 0;
  }

  .nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgb(255, 255, 255);
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
  }

  .nav li {
    margin: 0;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav li:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav ul.active {
    display: flex;
  }

  /* TOP SECTION (Hero/Greeting) */
  .top-box {
    min-height: 500px;
  }

  .greeting {
    gap: 1rem;
    padding: 0 15px;
  }

  #hi-text,
  #intro-text {
    font-size: 30px;
    word-break: break-word;
  }

  #buttons {
    margin-top: 4rem;
    font-size: 24px;
  }


  /* About Me Section */
  .about-me-box {
    width: 95%;
    padding: 0;
  }

  .about-me-text p {
    font-size: 16px;
  }

  /* Education */
  .education-images {
    flex-direction: column;
    gap: 20px;
    width: 90%;
  }

  .education {
    max-width: 100%;
    margin-bottom: 0;
  }

  .education img {
    height: 150px;
  }

  /* Footer Section */
  .get-in-touch-and-socials {
    margin-top: 50px;
    flex-direction: column;
    gap: 50px;
    align-items: center;
  }

  .footer-list li {
    display: block;
    margin: 5px 0;
  }

  .footer-list a {
    font-size: 16px;
  }

  .developed-by {
    margin-top: 30px;
    font-size: 14px;
  }
}

/* ----------------------------------------------------------------- */
/* ULTRA-MOBILE SIZE FIX (e.g., iPhone SE, Max-width: 400px) */
/* This ensures the very smallest phones don't break the layout. */
/* ----------------------------------------------------------------- */
@media (max-width: 400px) {

  /* Top Section */
  .top-box {
    min-height: 500px;
  }

  #hi-text,
  #intro-text {
    font-size: 34px;
  }

  .greeting {
    gap: 0.25rem;
    padding: 0 10px;
  }

  #buttons {
    display: none;
  }
}