@font-face {
  font-family: "Nurma";
  src: url("fonts/nurma-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #cdcdcd;
  font-family: "Nurma", sans-serif;
}

h1 {
  font-size: 3.5rem;
  margin: 0;
}

h2 {
  font-size: 2.5rem;
  margin: 0;
}

p,
h3,
h4,
h5,
h6,
span {
  font-size: 1.3rem;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: bounce 2.5s infinite;
}

.scroll-down .arrow {
  font-size: 1.5rem;
  display: block;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.stage {
  height: 100vh;
  overflow: hidden; /* Prevents horizontal scrolling from SVG content */
  position: relative; /* Needed for absolute positioning of the button */
  display: flex;
  justify-content: center;
  align-items: center;
}

#permissionButton {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 20;
  padding: 0.5rem 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: #cdcdcd;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #555;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#permissionButton:hover {
  background-color: #ffe066;
  color: #000;
  border-color: #ffe066;
}

/* Ensure SVG takes full block-level width, ignoring scrollbar space */

#ropePath {
  stroke: url(#ropeGradient);
  stroke-width: 3.5;
  fill: none;
  display: none;
}

#maskText,
.text-outline {
  font-family: "Nurma", sans-serif;
  font-weight: 700;
  letter-spacing: 4px;
  user-select: none;
  pointer-events: none;
}

.text-outline {
  fill: rgba(255, 255, 255, 0.25);
  filter: blur(2.5px);
}

#textGlowOverlay {
  fill: #ffe066;
  mask: url(#textMask);
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

#bulbContainer {
  position: absolute;
  cursor: grab;
  padding: 10px;
  background-clip: content-box;
  z-index: 10;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #fff 0%,
    #ffeb99 30%,
    #ffcc33 60%,
    transparent 100%
  );
  box-shadow: 0 0 70px #ffe599, 0 0 140px #ffcc33;
  transition: box-shadow 0.2s ease;
}

/* --- Content Layout --- */
.content-wrapper {
  display: flex;
  margin: 5% 10% 0 15%;
  position: relative;
}

nav {
  /* Takes up 1/3 of the space */
  height: 90vh;
  min-width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 2rem;
  z-index: 2;
  position: sticky;
  top: 5vh;
}

nav #type {
  font-size: 1.2rem;
}

nav h2 {
  color: #ffe066;
}

nav ul {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
}

nav ul li a:hover {
  color: #ffe066;
  transition: color 0.3s ease;
}

nav ul li a {
  color: #cdcdcd;
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 2;
}

nav #icons i:hover {
  color: #ffe066;
  transition: color 0.3s ease;
}

nav #icons i {
  font-size: 1.5rem;
  margin-right: 1rem;
  cursor: pointer;
  color: #cdcdcd;
}
#right {
  max-width: 65%;
  margin-left: 5%;
  z-index: 2;
}
section {
  min-height: 50vh;
  padding: 10% 0 10% 0;
}

.sub-title {
  text-align: center;
  color: #ffe066;
}
#aboutMe p {
  font-size: 1.3em;
  text-align: justify;
}

#navContents {
  margin-top: 70px;
  display: none;
  gap: 5px;
}

#navContents h1 {
  font-size: 30px;
}

#navContents h2 {
  font-size: 25px;
}

/* Resume Button */
.resume-btn {
  color: #ffe066;
  border-color: #ffe066;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  background: #ffe066;
  color: #000;
}

/* Tech Ticker */
.tech-ticker-wrapper {
  overflow: hidden;
  border-top: 1px solid rgba(255, 224, 102, 0.2);
  border-bottom: 1px solid rgba(255, 224, 102, 0.2);
  padding: 15px 0;
}

.tech-ticker {
  display: flex;
  gap: 50px;
  animation: ticker-scroll 20s linear infinite;
}

.tech-ticker i {
  font-size: 2rem;
  color: #cdcdcd;
  transition: transform 0.3s, color 0.3s;
}

.tech-ticker i:hover {
  color: #ffe066;
  transform: scale(1.2);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Skills */
.skill {
  margin-bottom: 18px;
}

.skill span {
  display: block;
  font-size: 0.85rem;
  color: #cdcdcd;
  margin-bottom: 6px;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: #2b2b2b;
  border-radius: 10px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: #ffe066;
  border-radius: 10px;
}

/* --- Education Section --- */

.education-list {
  margin-top: 3rem;
}

.eduCard {
  display: grid;
  grid-template-columns: 150px 2px 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
  position: relative;
}

.eduCard:hover .timeline-line::before {
  background-color: #fff;
  box-shadow: 0 0 0 2px #fff;
}

.eduCard .date {
  grid-column: 1;
  text-align: right;
  padding-right: 1rem;
  position: relative;
}

.eduCard .date h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  color: #ffe066;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.eduCard .timeline-line {
  grid-column: 2;
  background-color: #555;
  position: relative;
}

/* Dot on the timeline */
.eduCard .timeline-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: #ffe066;
  border-radius: 50%;
  border: 2px solid #000;
  box-shadow: 0 0 0 2px #ffe066;
  margin-top: 0.25rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
}

.eduCard .eduInfo {
  grid-column: 3;
  padding-left: 1rem;
}

.eduCard .eduInfo:not(:last-child) {
  margin-bottom: 2rem;
}

.eduCard .eduInfo h4 {
  font-size: 1.2rem;
  color: #cdcdcd;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.eduCard .eduInfo h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.eduCard:hover .eduInfo h3 {
  color: #ffe066;
}

.eduCard .eduInfo p {
  font-size: 1rem;
  line-height: 1.5;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.eduCard .eduLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.eduCard .eduLinks .link {
  color: #ffe066;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ffe066;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.eduCard .eduLinks .link:hover {
  background-color: #ffe066;
  color: #000;
}
/* --- Project --- */
/* Custom Project Layout */
.project-card-custom {
  display: flex;
  align-items: center;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;

  /* ADD THESE TWO LINES */
  height: 100%;
  box-sizing: border-box;
}

/* .project-card-custom:hover {
  transform: translateX(10px);
} */

/* Image Styling - Slightly larger to balance the text */
.project-image-wrapper {
  width: 140px;
  height: 90px;
  flex-shrink: 0;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* The Vertical Line Separator */
.project-divider {
  width: 4px;
  align-self: stretch; /* Makes line match the height of the text content */
  background-color: #ffe066;
  margin: 0 30px;
  border-radius: 2px;
}

/* Content Styling */
.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-content .card-title {
  margin-bottom: 4px;
  font-size: 1.3rem;
  color: #ffffff;
}

.project-card-custom:hover .project-content .card-title {
  color: #ffe066; /* choose any color you want */
}

/* Description Styling */
.project-description {
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 400px; /* Prevents text from stretching too far */
  color: #aaaaaa;

  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limits text to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tech Stack Base Style */
.tech-stack i {
  font-size: 1.6rem;
  margin: 0 6px;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover effect */
.tech-stack i:hover {
  transform: scale(1.2);
}

/* Muted brand colors for grey/black theme */
.fa-html5 {
  color: #e07b55; /* muted orange */
}

.fa-css3-alt {
  color: #4a90e2; /* muted blue */
}

.fa-js {
  color: #e6d96f; /* muted yellow */
}

.fa-bootstrap {
  color: #8665b0; /* muted purple */
}

.fa-php {
  color: #6f6fbf; /* muted violet */
}

.fa-laravel {
  color: #e26a5a; /* muted red */
}

.fa-database {
  color: #5b8bc4; /* muted blue for MySQL */
}

.fa-plug {
  color: #5aa0e0; /* muted blue for API */
}

.fa-wand-magic-sparkles {
  color: #8ed17b; /* muted green for GSAP */
}

.fa-cubes {
  color: #a0a0a0; /* medium grey for GrapesJS */
}

.fa-layer-group {
  color: #e1b978; /* muted orange for Blade */
}

.fa-android {
  color: #5fb88b; /* muted green */
}

.fa-java {
  color: #5b99b0; /* muted blue */
}

/* Interaction: Divider glows on hover */
.project-card-custom:hover .project-divider {
  box-shadow: 0 0 10px rgba(255, 224, 102, 0.6);
}

/* --- End of Project --- */
/* Modal Core Container */
.project-modal-dark {
  background-color: #000 !important;
  border: 1px solid #333;
  border-radius: 12px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* macOS Header Styling */
.mac-header {
  height: 42px;
  background: #2e2e2e;
  border-bottom: 1px solid #222;
  z-index: 10;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
  transition: opacity 0.2s;
}

.dot.red {
  background: #ff5f56;
  cursor: pointer;
  position: relative;
}
.dot.yellow {
  background: #ffbd2e;
  cursor: default;
}
.dot.green {
  background: #27c93f;
  cursor: default;
}

.dot.red:hover::after {
  content: "×";
  color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: bold;
}

.header-link {
  text-decoration: none;
  color: #666;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.header-link:hover {
  color: #ffe066;
}

/* Right Side Preview Pane */
.preview-pane {
  border-left: 1px solid #ffe066;
  background-color: #000;
  position: relative;
  height: 80vh;
}

.preview-iframe {
  border: none;
  background: #fff;
  filter: grayscale(20%);
}

/* Typography & Links */
.btn-minimal {
  color: #ffe066;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-bottom: 2px solid #ffe066;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.btn-minimal:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Tech Icons */
#modalTech i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

#modalTech i:hover {
  /* color: #ffe066; */
  transform: translateY(-3px);
}

/* Feature Tag Styling */
.feature-tag {
  font-size: 0.75rem;
  color: #cdcdcd;
  border: 1px solid #333;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.feature-tag:hover {
  border-color: #ffe066;
  color: #ffe066;
}

/* Make the left content area scrollable */
.modal-content-scrollable {
  overflow-y: auto;
  max-height: calc(85vh - 42px); /* Subtracts the macOS header height */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: #333 transparent;
}

/* Optional: Style the scrollbar for Chrome/Safari/Edge to keep it dark */
.modal-content-scrollable::-webkit-scrollbar {
  width: 6px;
}

.modal-content-scrollable::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 10px;
}
/* --- Responsive Breakpoints --- */

/* Medium devices (tablets, landscape) and smaller */
@media (max-width: 768px) {
  h2 {
    font-size: 1.8rem;
    margin: 0;
  }
  .scroll-down span {
    font-size: 15px;
  }
  /* Adjustments for smallest screens */
  @media (max-width: 575.98px) {
    h2 {
      font-size: 1.5rem;
    }
    .scroll-down span {
      font-size: 10px;
    }
    #bulbContainer {
      width: 20px;
      height: 20px;
      padding: 10px;
    }
    #maskText,
    .text-outline {
      font-size: 16vw;
    }
    #aboutMe p {
      font-size: 10px;
      padding: 0;
    }
  }
  #bulbContainer {
    width: 40px;
    height: 40px;
  }
  #maskText,
  .text-outline {
    font-size: 14vw;
  }
  .content-wrapper {
    margin: 5% 5%;
  }

  nav {
    display: none;
  }

  #right {
    max-width: 100%;
    margin-left: 0;
  }

  #aboutMe {
    padding: 0;
  }

  #aboutMe p {
    font-size: 15px;
    padding: 0;
  }

  #navContents {
    display: block;
  }

  /* Education Section Responsive */
  .eduCard {
    display: block; /* Revert to block layout for stacking */
  }

  .eduCard .eduInfo {
    position: relative;
    padding-right: 2rem; /* Space for the arrow */
  }

  /* Arrow indicator for dropdown */
  .eduCard .eduInfo::after {
    content: "\25BC"; /* Downward-pointing triangle */
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    font-size: 1rem;
    color: #cdcdcd;
    transition: transform 0.3s ease-out;
  }

  .eduCard.active .eduInfo::after {
    transform: rotate(180deg); /* Point arrow up when active */
  }

  /* Hide details by default on mobile */
  .edu-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-top: 0;
  }

  .eduCard .date {
    width: auto; /* Remove fixed width */
    text-align: left;
    padding-right: 0;
    padding-bottom: 0.5rem;
  }

  .eduCard .date h3 {
    font-size: 1.2rem;
  }

  .eduCard .timeline-line {
    width: 100%; /* Make it horizontal */
    height: 1px;
    background-color: #555;
    margin: 0.5rem 0 1.5rem 0;
  }

  .eduCard .timeline-line::before {
    display: none; /* Hide the dot */
  }

  .eduCard .eduInfo {
    padding-left: 0; /* Reset padding from desktop view */
    cursor: pointer; /* Indicate it's clickable */
  }

  /* Show details when .active class is present */
  .eduCard.active .edu-details {
    max-height: 500px; /* A large enough value to show all content */
  }

  .eduCard .eduInfo:not(:last-child) {
    margin-bottom: 1.5rem;
  }

  .sub-title {
    margin-top: 5rem;
  }
}

/* Large devices (desktops, small laptops) */
@media (min-width: 769px) and (max-width: 992px) {
  .scroll-down span {
    font-size: 15px;
  }
  #bulbContainer {
    width: 50px;
    height: 50px;
  }
  #maskText,
  .text-outline {
    font-size: 12vw;
  }
  .content-wrapper {
    margin: 5% 5%;
  }

  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.7rem;
  }
  #aboutMe p {
    padding: 0 50px 0 50px;
    font-size: 0.8rem;
    line-height: 1.3;
  }

  /* Education Section Responsive */
  .eduCard .date {
    width: 120px; /* Slightly smaller width for date column */
    padding-right: 1.5rem;
  }
  .eduCard .date h3 {
    font-size: 1rem;
  }
  .eduCard .eduInfo h4 {
    font-size: 1.1rem;
  }
  .eduCard .eduInfo h3 {
    font-size: 1.3rem;
  }
}

/* Extra large devices (large desktops) & up */
@media (min-width: 993px) {
  .scroll-down span {
    font-size: 20px;
  }
  #bulbContainer {
    width: 60px;
    height: 60px;
  }
  #maskText,
  .text-outline {
    font-size: 10vw;
  }
}
