/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body background with overlay */
body {
  margin: 0;
  padding: 0;
  height: 100vh;

  display: flex;
  position: relative;
  background: url('images/background.jpeg') no-repeat center center/cover;
  overflow: hidden;
}

/* Body text */
body, p, li, a {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #fff;
}

/* Headings and menu text */
h1, h2, h3, .left-menu ul li a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Black overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.8); /* semi-transparent black layer */
  z-index: 0;
}



/* Left Menu */
.left-menu {
  position: fixed;
  left: 70px; /* updated position */
  top: 50%;
  transform: translateY(-60%);
  z-index: 4;
}

.left-menu ul {
  list-style: none;
}

.left-menu ul li {
  margin: 25px 0;
}

.left-menu ul li a {
  display: inline-block;
  text-decoration: none;
  color: #888;
  font-size: 1.2rem;
  width: 90px;
  text-align: left;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 10px;
}

/* Active menu button */
.left-menu ul li a.active {
  color: #fff;
}

/* Hover effect: grey becomes white */
.left-menu ul li a:hover {
  color: #fff;
}

/* Solid cyan underline */
.left-menu ul li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #00b2ff;
  transition: width 0.3s ease;
}

/* Show underline if active or hovered */
.left-menu ul li a.active::after,
.left-menu ul li a:hover::after {
  width: 100%;
}



/* Right Icons */
.right-icons {
  position: fixed;
  right: 70px;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
}

.right-icons ul {
  list-style: none;
}

.right-icons ul li {
  margin: 40px 0;
}

.right-icons ul li a {
  display: inline-block;
  width: 40px;
  text-align: center;
  color: #ffffff;
  font-size: 2.2rem;
  transition: color 0.3s, transform 0.3s;
}

.right-icons ul li a:hover {
  color: #00b2ff; /* solid cyan hover */
  transform: scale(1.2);
}



/* Content Area */
.content {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 1100px;
  width: 90%;
  text-align: center;
  color: #fff;
  z-index: 1; /* above overlay */
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
  
}

/* Chrome, Safari, Opera */
#content::-webkit-scrollbar {
  display: none;
}



/* Boxes Container */
.boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* space between boxes */
  margin-top: 40px;
}



/* Individual Project Box */
.box {
  width: 250px;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;

  /* Glass effect */
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.055);
}

.box:hover {
  transform: translateY(-10px);
  border-color: #00b2ff;
  cursor: pointer;
}

/*small box*/
.small-box {
  width: 250px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;

  /* Glass effect */
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.055);
}

.small-box:hover {
  transform: translateY(-5px);
  border-color: #00b2ff;
  cursor: pointer;
}

.small-box h2 {
  margin-top: 22px;
  text-align: center;
}

/* Box Image / Background */
.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.box:hover img {
  transform: scale(1.05); /* subtle zoom on hover */
}

.box-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Text overlay on image */
.box-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 300px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
  transform: translateY(83%); /* initially move up to show only title */
}

.box-text h2 {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
  position: relative; /* title stays in normal flow */
  z-index: 2;
}

.box-text h3 {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  color: #ccc;
}

.box-text p {
  margin: 0;
  text-align: left;
  font-size: 1rem;
  color: #ccc;
}

/* Hover effect on overlay */
.box:hover .box-text {
  transform: translateY(0);
}

/*3D art boxes*/
.box-text-3d {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.8rem;
}

/* Wide box */
.box-wide {
  width: calc(250px * 2 + 30px);
  height: 350px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: all 0.3s ease;
}

.box-wide h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.horizontal-line {
  width: 450px;
  height: 3px;
  background-color: #00b2ff;

}

.box-wide p {
  font-size: 1.3rem;
  color: #ccc;
  margin-top: 15px;
  margin-bottom: 10px;
}

.box-wide:hover {
  border-color: #00b2ff;
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.08); /* slightly brighter on hover */
}

.icon-links {
  margin-top: 15px;
  display: flex;
  gap: 30px;
}

.box-wide .icon-links a {
  font-size: 2.2rem;  /* bigger icons */
  margin: 0 10px;
  color: #fff;
  transition: color 0.3s, transform 0.3s;
}

.box-wide .icon-links a:hover {
  color: #00b2ff;
  transform: scale(1.2);
}



/*Info Box*/
.box-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px 10px 0 0;
  font-size: 1.2rem;
  color: #fff;
  z-index: 3;
}

.project-type {
  font-weight: 400;
  letter-spacing: 0.5px;
}

.software-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.software-icons img {
  width: 25px;
  height: 25px;
  opacity: 0.9;
}



/*project content*/
.project-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 20px;
}

.project-content h1 {
  font-size: 2.2rem;
  color: #00b2ff;
  margin-bottom: 0;
}

.project-sub {
  font-size: 1rem;
  opacity: 0.7;
  margin-top: 0;
}

.project-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 0px;
}

.project-images img {
  max-width: 100%;
  width: 700px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.project-images img:hover {
  transform: scale(1.05);
}

.project-images-mini {
  justify-content: center;
  gap: 15px;
  margin: 10px;
}

.project-images-mini img {
  max-width: 100%;
  width: 350px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.project-images-mini img:hover {
  transform: scale(1.05);
}

.mini-images {
 justify-content: center;
 display: flex;
 flex-wrap: wrap;
}

.project-images-macro {
  justify-content: center;
  gap: 15px;
  margin: 10px;
}

.project-images-macro img {
  max-width: 100%;
  width: 170px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.project-images-macro img:hover {
  transform: scale(1.05);
}

.macro-images {
 justify-content: center;
 display: flex;
 flex-wrap: wrap;
}

.image-description {
  max-width: 700px;
  line-height: 1.6;
  color: gray;
  font-size: 0.8rem;
  margin-left: 40px;
  margin-right: 40px;
}

.project-description {
  text-align: left;
  max-width: 700px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  
}



/*project overlay*/
.overlay {
  position: fixed;
  inset: 0;
  background: rgb(0,0,0);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 20px;
  overflow-y: auto;
  z-index: 999;
  opacity: 0;
  pointer-events: none;  /* <--- key fix */
  transition: opacity 0.2s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;   /* allow interactions when active */
}

.overlay-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 30px;
  color: white;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.overlay.active .overlay-inner {
  transform: translateY(0);
}

.close-btn {
  position: fixed;       /* always stays in viewport */
  top: 40px;
  right: 60px;
  font-size: 3rem;
  cursor: pointer;
  color: #fff;
  z-index: 1001;         /* above overlay content */
}

.close-btn:hover {
  color: #00b2ff;
}



/* Hamburger button */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1001;
  padding-top: 60px;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu ul li a {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  padding: 15px 0;
  text-decoration: none;
}

.mobile-menu ul li a:hover {
  color: #00b2ff;
}

/* Default: hide hamburger on desktop */
.hamburger {
  display: none;
}

/* Hamburger button visible on mobile */
@media screen and (max-width: 768px) {
  .left-menu {
    display: none; /* hide left menu on mobile */
  }

  .box-wide {
    height: auto;
  }

  .right-icons {
    right: 30px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    position: fixed;
    top: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 1002; /* above everything */
  }

  .hamburger span {
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
}
  
  .mobile-menu {
    display: none; /* initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1001;
    padding-top: 80px;
    overflow-y: auto;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .mobile-menu ul li a {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    padding: 15px 0;
    text-decoration: none;
  }

  .mobile-menu ul li a:hover {
    color: #00b2ff;
  }

/*timeline*/
.branch-timeline {
  position: relative;
  padding: 80px 10% 10px 10%;
}

.about h2 {
  text-align: center;
  color: #00b2ff;
  font-size: 2.3rem;
  margin-bottom: 35px;
  letter-spacing: 1px;
  margin-top: 40px;
}

/* About Section Container */
.about-content {
  max-width: 80%; 
  margin: 0 auto;
  text-align: left;  
  line-height: 1.8; 
  font-size: 1.1rem; 
  font-weight: 100;
  letter-spacing: 0.5px;
}

.about-content p {
  margin-bottom: 25px;
  color: #ccc; 
}

.about-content strong {
  color: #00b2ff;
}

/* Timeline vertical line */
.timeline-line {
  position: absolute;
  top: 240px;
  left: 25%;
  width: 3px;
  height: calc(100% - 650px);
  background-color: #00b2ff;
}

/* Each year + its softwares */
.timeline-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 80px;
  position: relative;
}

/* Year styling */
.year {
  width: 18.4%;
  text-align: right;
  padding-right: 30px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #00b2ff;
  position: relative;
}

.year::after {
  content: '';
  position: absolute;
  top: 8px;
  right: -12px;
  width: 15px;
  height: 15px;
  background-color: #00b2ff;
  border-radius: 50%;
}

.time-title {
  width: 75%;
  text-align: left;
  color: #a7a7a7;
  font-weight: 100;
  font-size: 24px;
}

/* Software boxes */
.software {
  width: 75%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: 5%;
}

.content-time {
  flex: 1 1 45%;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgb(43, 43, 43);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;

  /* Glass effect */
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(10px);
}

.content-time:hover {
  transform: translateY(-5px);
  border-color: #00b2ff;
}

.content-time h3 {
  margin: 0 0 10px;
  color: #00b2ff;
  font-size: 1.3rem;
}

.content-time p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}



.video-container {
  width: 750px;
  height: 450px;
  border-radius: 10px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
}



/* Skills */
.skills-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

/* Individual Skill */
.skill {
  margin-bottom: 25px;

}

/* Skill name and percentage */
.skill p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  line-height: 1.8; 
  font-size: 1.1rem; 
  font-weight: 100;
  letter-spacing: 0.5px;
  color: #ccc;
}

/* Bar container */
.skill-bar {
  width: 100%;
  height: 15px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* Filled bar with gradient */
.skill-level {
  height: 100%;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(to right, #ccc 0%, #0096d6 100%);
  width: 0; /* start empty */
  animation: fillBar 1.5s forwards; /* animate to final width */
}

@keyframes fillBar {
  to {
    width: var(--final-width); /* use CSS variable for dynamic width */
  }
}


/* software proficiency*/
.software-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.software-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #00b2ff;
}

/* Icon container */
.pf-software-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  padding-top: 40px;
  padding-bottom: 40px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;

  /* Glass effect */
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(3px);
  border: 2px solid rgba(255, 255, 255, 0.055);
}

.pf-software-icons:hover {
  transform: translateY(-5px);
  border-color: #00b2ff;
}

/* Individual icons */
.pf-software-icons img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
  filter: grayscale(10%); /* slightly muted initially */
}

/* Hover effect */
.pf-software-icons img:hover {
  transform: scale(1.1);
  filter: grayscale(0%); /* full color on hover */
}

/* Responsive */
@media screen and (max-width: 600px) {
  .pf-software-icons img {
    width: 50px;
    height: 50px;
  }
}


/*Curresnt focus*/
.focus-section {
  max-width: 80%; 
  margin: 0 auto;
  text-align: left;  
  line-height: 1.8; 
  font-size: 1.1rem; 
  font-weight: 100;
  letter-spacing: 0.5px;
  color: #ccc;
}

.focus-section p {
  color: #ccc;
  margin-bottom: 15px;
}

.focus-section strong {
  color: #00b2ff;
}


/*hobbies*/
.hobbies {
  padding: 60px 20px;
  text-align: center;

}

.open-text {
  max-width: 80%; 
  margin: 0 auto;
  text-align: left;  
  line-height: 1.8; 
  font-size: 1.1rem; 
  font-weight: 100;
  letter-spacing: 0.5px;
  color: #ccc;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.hobby-card {
  background: linear-gradient(135deg, #1a1a1bb0 0%, #000000b0 100%);
  border-radius: 16px;
  padding: 25px;
  border: 2px solid;
  border-color: #3b3b3b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 80, 0.15);
}

.hobby-card h3 {
  color: #ccc;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.hobby-card p {
  color: #858585;
  font-size: 1rem;
  line-height: 1.6;
}



/*CTA*/
.cta {
  text-align: center;
  margin: 80px auto;
  max-width: 800px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.7;
  color: #ccc;
}

/* Cool Button */
.cta-btn {
  display: inline-block;
  background: #e7e7e7;
  color: #1e3a8a;
  padding: 18px 46px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transition: 0.5s;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  color: white;
  background: linear-gradient(90deg, #3b82f6, #1e3a8a);
  transform: translateY(-1px) scale(1.05);
}




/*Blog*/
.blog{
  padding-left: 10%;
  padding-right: 10%;
}

.blog h2{
  text-align: center;
  color: #00b2ff;
  font-size: 2.3rem;
  margin-bottom: 35px;
  letter-spacing: 1px;
  margin-top: 40px;
}

.blog-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.7;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-post {
  display: flex;
  align-items: center;
  text-align: left;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid;
  border-color: #cccccc21;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-post img {
  width: 40%;
  height: 200px;
  object-fit: cover; 
  flex-shrink: 0;  
  border-right: 2px solid rgba(0,0,0,0.05);
}

.post-content {
  padding: 25px 30px;
  width: 60%;
}

.post-content h3 {
  color: #ccc;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.post-content p {
  color: #888;
  margin-bottom: 15px;
  line-height: 1.7;
}

.read-more {
  text-decoration: none;
  color: #3b82f6;
  font-weight: 600;
  transition: color 0.3s;
}

.read-more:hover {
  color: #1e3a8a;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-post {
    flex-direction: column;
  }

  .blog-post img {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 2px solid rgba(0,0,0,0.05);
  }

  .post-content {
    width: 100%;
  }
}
