/* Variables for colors and other constants */
/* Variables for colors and other constants */
/* Variables for colors and other constants */

:root {
  --navy-dark: #03162a92;
  --navy-dark-rgb: 1, 39, 75;
  --text-orange: rgb(117, 210, 255);
  /* --text-orange: rgb(224, 130, 0); */
  --nav-height: 60px;
  --accent-color: #5e831c;
  --green-clear: #032a25db;
}




/* Body and background styles */
/* Body and background styles */
/* Body and background styles */

/* Body ---> .intrduction & .main-div
 body contains BOTH,  but both  fill screen*/
/* Body ---> .intrduction & .main-div
 body contains BOTH,  but both  fill screen*/

html {
  scroll-behavior: auto;
}

html,
body {

  height: 100%;
}

body {
  overflow-y: scroll;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
  color: var(--text-orange);
  text-shadow: 0 0 64px #ff0b0b;
  background-image: url('assets/back-image-02.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}


@keyframes overlay-pulse {
  0% {
    opacity: 1;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
  }
}

.background-gradient-overelay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(170deg,
      #0000007d 0%,
      #11004a7a 25%,
      #312f046c 50%,
      #053f0e64 75%,
      #00150052 100%);
  animation: overlay-pulse 8s ease-out 1 forwards;
}





#hello-nice {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: clamp(8px, 3vw, 64px);
  margin: 0;
  flex-shrink: 1;
  min-width: 0;

}

.contact-me {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 16px 0;
  background: linear-gradient(170deg, #001500 0%, var(--navy-dark) 100%);
  border-radius: 32px 32px 0 0;
}

.contact-me>button,
.contact-right>button {
  position: relative;
  z-index: 1;
  margin-left: 0;
  margin-right: clamp(10px, 3vw, 66px);
  flex-shrink: 0;
  background: linear-gradient(170deg, var(--navy-dark) 0%, #001500 100%);
  color: var(--text-orange);
  border: 1px solid var(--text-orange);
  border-radius: 6px;
  padding: 10px 28px;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  animation: card-pulse 6s ease-in-out infinite;
  text-shadow: 0 0 1px var(--accent-color);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.contact-me>button:hover {
  background: rgba(62, 51, 30, 0.91);
  color: var(--green-clear);
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 8px rgba(62, 51, 30, 0.91);
  text-shadow: 0 0 4px var(--text-orange), 0 0 12px var(--text-orange);
}

/* Animations for nav text */
#hello {
  margin-left: clamp(8px, 3vw, 64px);
  transform: translateX(-300%);
  animation: slideInLeft 1.3s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: 0.3s;
  font-family: 'Georgia', 'Times New Roman', serif;
  text-shadow: 0 0 1px white, 0 0 8px #13bb9496;
  color: var(--accent-color);
}

.contact-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: clamp(8px, 3vw, 64px);
  gap: 2px;
  flex-shrink: 0;
}

.contact-right::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -40px;
  right: -10px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-color) 30%, var(--accent-color) 70%, transparent);
  opacity: 0.45;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

#muh-name {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-orange);
  white-space: normal;
  word-break: break-word;
  max-width: clamp(60px, 20vw, 200px);
  text-align: center;
  flex-shrink: 1;
  position: relative;
  z-index: 1;
}

#a-world {
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  font-size: clamp(0.55rem, 0.9vw, 0.75rem);
  color: var(--accent-color);
  text-align: right;
  opacity: 0;
  animation: fade-in-gentle 1.4s ease forwards;
  animation-delay: 3.1s;
  position: relative;
  z-index: 1;
}

@keyframes fade-in-gentle {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.75;
  }
}

#nice-to {
  margin-left: clamp(8px, 3vw, 64px);
  color: var(--text-orange);
  transform: translateX(100vw);
  animation: slideInRight 2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: 0.1s;
  text-shadow: 0 0 8px #ffffff7a;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(0);
  }
}


/* ── Contact Form Modal Styles ── */
#contact-form-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
}

.contact-form-modal-form {
  background: var(--navy-dark, #222);
  padding: 32px 24px 24px 24px;
  border-radius: 12px;
  box-shadow: 0 0 32px #000a;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 300px;
  max-width: 90vw;
  position: relative;
}

.contact-form-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-orange, #ffa);
  font-size: 2rem;
  cursor: pointer;
}

.contact-form-title {
  margin: 0 0 8px 0;
  color: var(--accent-color, #7dc18d);
  text-align: center;
  font-size: 1.3rem;
}

.contact-form-input {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.contact-form-textarea {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.contact-form-submit {
  background: linear-gradient(170deg, var(--navy-dark) 0%, #001500 100%);
  color: var(--text-orange);
  border: 1px solid var(--text-orange);
  border-radius: 6px;
  padding: 10px 28px;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
}

#contact-form-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
}



@keyframes main-back-glow {
  0% {
    box-shadow: 0 0 32px var(--accent-color);
  }

  100% {
    box-shadow: 2px 1px 9px rgb(144, 200, 255), 1px 2px 16px rgb(0, 0, 0);
  }
}


.main-back {
  box-sizing: border-box;
  height: calc(100vh - clamp(24px, 6vw, 64px));
  max-height: calc(100vh - clamp(24px, 6vw, 64px));
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: linear-gradient(170deg, #00000035 0%, #001500 100%);
  border: 2px solid var(--accent-color);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  margin: clamp(12px, 3vw, 32px);
  animation: main-back-glow 4s ease-out forwards;
  animation-delay: 2s;
  box-shadow: 0 0 32px var(--accent-color);
}
/* marker */




/* marker 3 */

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 20px 10vw 20px 10vw;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.h3-wrapper {
  background: linear-gradient(170deg, #00000035 0%, #001500 100%);
}

/* h3 hidden — kept in markup for screen readers but not displayed */
.main-content>h3 {
  display: none;
}

@keyframes card-pulse {

  0%,
  100% {
    box-shadow: 0 0 2px var(--accent-color), 0 0 3px var(--accent-color);
  }

  50% {
    box-shadow: 0 0 5px var(--text-orange), 0 0 6px var(--text-orange);
  }
}

.main-four {
  background-color: var(--green-clear);
  width: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-size: clamp(0.65rem, 1.2vw, 1rem);
  cursor: pointer;
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.main-four:hover {
  transform: scale(1.02);
  box-shadow: 0 0 28px var(--text-orange);
  animation: card-pulse 1s linear infinite;
}

/* Mobile tap feedback */
.main-four:active {
  transform: scale(0.97);
  box-shadow: 0 0 12px #1ccaff88;
  animation: none;
}

/* Image wrapper for positioning the expand icon */
.card-img-wrap {
  border-top: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
  position: relative;
  width: 100%;
  height: 14vh;
  flex-shrink: 0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-me-img {
  object-position: center 35%;
}

.card-expand-icon {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 1.1rem;
  line-height: 1;
  color: #fff;
  background: rgba(1, 39, 75, 0.72);
  border: 1px solid #1ccaff88;
  border-radius: 4px;
  padding: 2px 5px;
  pointer-events: none;
  text-shadow: 0 0 6px #1ccaff;
}

.card-label {
  padding: 8px 12px;
  font-size: clamp(0.75rem, 1.4vw, 1.1rem);
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
  color: var(--text-orange);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 32px;
  /* Space for the gradient overlay */
}

.main-four::after {
  content: '';
  position: sticky;
  height: 32px;
  background: linear-gradient(to top, var(--navy-dark) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  display: block;
  margin-top: -32px;
}

.main-four:hover .card-label {
  overflow-y: auto;
}

/* Scrollbar styling for card-label */
.card-label::-webkit-scrollbar {
  width: 5px;
}

.card-label::-webkit-scrollbar-track {
  background: transparent;
}

.card-label::-webkit-scrollbar-thumb {
  background: #1ccaff88;
  border-radius: 4px;
}

.card-label::-webkit-scrollbar-thumb:hover {
  background: var(--text-orange);
}

.card-label h3,
.card-label-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.75rem, 3vw, 2rem);
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--accent-color);
  text-shadow: 0 0 16px #13bb9496;
  font-weight: bold;
  margin: 4px 0;
  min-height: clamp(0.75rem, 3vw, 2rem);
}


.name-profession {
  text-align: center;
}

.link {
  font-size: 0.7em;
}

.profession {
  font-style: italic;
}

/* ── Modal overlay ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--green-clear);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  position: relative;
  background: var(--navy-dark);
  border: 1px solid #1ccaff55;
  box-shadow: 0 0 60px #1c4eff66, 0 0 120px #1ccaff33;
  border-radius: 10px;
  width: 90vw;
  max-width: 960px;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-orange);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: color 0.15s;
}

.modal-close:hover {
  color: #fff;
}

.modal-body>img:first-child {
  width: 100%;
  max-height: 45vh;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
  flex-shrink: 0;
  margin-bottom: 0;
}

/* Modal image grid */
.modal-image-div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  margin: 0 -28px 16px -28px;
  width: calc(100% + 56px);
  padding: 6px;
}

.modal-image-div>div {
  width: clamp(40px, 20vw, 200px);
  height: clamp(40px, 20vw, 200px);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.modal-image-div>div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.2s ease;
}

.modal-image-div>div:hover img {
  transform: scale(1.05);
}

/* Lightbox for expanded image */
.modal-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.modal-lightbox.active {
  display: flex;
}

.modal-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(28, 202, 255, 0.3);
  animation: modalIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal-body {
  padding: 0 28px 24px 28px;
  color: var(--text-orange);
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}




.modal-content-img img {
  width: 100%;
  margin: 16px 0;
  object-fit: cover;
}

@media (max-width: 520px) {
  .content {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    height: 100vh;
    padding: calc(var(--nav-height) + 12px) 6vw 12px 6vw;
  }

  .contact-me {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }

  .contact-me>p {
    transform: translateX(5px);
  }

  .contact-me>button {
    margin-left: 0;
    margin-right: 0;
    align-self: center;
  }

  .contact-right {
    margin-left: 0;
    margin-right: 0;
    align-items: center;
    align-self: center;
  }

  #hello-nice {
    padding-left: 0;
    justify-content: center;
    white-space: nowrap;
    gap: 6px;
  }

  #hello {
    margin-left: 0;
  }

  #nav-nice-to {
    margin-left: 0;
  }

  #need-a {
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
  }

  .main-back {
    margin: auto;
  }

  .main-content {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

}